Skip to content

Commit 8e79252

Browse files
committed
cozyplane: R5 — ResourceQuota for aggregated kinds
Assisted-by: LLM Signed-off-by: Timofei Larkin <[email protected]>
1 parent 690acb0 commit 8e79252

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

‎packages/system/cozyplane-apiserver/templates/apiserver.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ metadata:
5151
labels:
5252
{{- include "cozyplane-apiserver.labels" . | nindent 4 }}
5353
rules:
54+
# ResourceQuota admission (docs/multitenancy.md R5): the kube-apiserver's quota
55+
# cannot see an aggregated API's kinds, so this server enforces
56+
# `count/<resource>.sdn.cozystack.io` itself. It reads the tenant's ResourceQuotas
57+
# and writes the observed usage back into their status.
58+
- apiGroups: [""]
59+
resources: ["resourcequotas"]
60+
verbs: ["get", "list", "watch"]
61+
- apiGroups: [""]
62+
resources: ["resourcequotas/status"]
63+
verbs: ["get", "update", "patch"]
5464
# Namespace-lifecycle admission reads namespaces.
5565
- apiGroups: [""]
5666
resources: ["namespaces"]

‎packages/system/cozyplane-apiserver/values.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Container image (shared with the cozyplane chart — the apiserver binary lives
22
# in the same image). Digest-pinned (no floating tag); update on each published
33
# build.
4-
image: ghcr.io/lllamnyp/cozyplane@sha256:08939258ed90d59ff5466f70ad112503bb3870abc437c535b6a56c26eb1b161e
4+
image: ghcr.io/lllamnyp/cozyplane@sha256:894516653b8580c9d5fd9c2e0d6aa1e5661e867878b27dacfc3cf3331e57d2f8
55
imagePullPolicy: IfNotPresent
66
imagePullSecrets: []
77

‎packages/system/cozyplane/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: cozyplane
33
description: Multi-tenant eBPF CNI for Cozystack — flat default network plus VPC tenancy
44
type: application
55
# Placeholder; the real version is stamped by the build/release pipeline.
6-
version: 0.3.28
6+
version: 0.3.29
77
appVersion: "0.1.0"
88
kubeVersion: ">=1.30.0-0"
99
keywords:

‎packages/system/cozyplane/values.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Container image for all cozyplane components (agent, CNI plugin, controller).
22
# Digest-pinned (no floating tag); update on each published build.
3-
image: ghcr.io/lllamnyp/cozyplane@sha256:08939258ed90d59ff5466f70ad112503bb3870abc437c535b6a56c26eb1b161e
3+
image: ghcr.io/lllamnyp/cozyplane@sha256:894516653b8580c9d5fd9c2e0d6aa1e5661e867878b27dacfc3cf3331e57d2f8
44
imagePullPolicy: IfNotPresent
55
imagePullSecrets: []
66

0 commit comments

Comments
 (0)