From 4526e124eb3f5f4ec72a26e8123c09b38bd40c3e Mon Sep 17 00:00:00 2001 From: sandert-k8s Date: Thu, 4 Jun 2026 18:12:43 +0200 Subject: [PATCH 1/2] fix: apiVersion in docs Signed-off-by: sandert-k8s --- .../docs/resource-management/customquotas/_index.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/content/en/docs/resource-management/customquotas/_index.md b/content/en/docs/resource-management/customquotas/_index.md index ae3ed83..d4edd95 100644 --- a/content/en/docs/resource-management/customquotas/_index.md +++ b/content/en/docs/resource-management/customquotas/_index.md @@ -147,10 +147,9 @@ spec: - matchLabels: capsule.clastix.io/tenant: solar sources: - - group: "" + - apiVersion: v1 kind: Pod op: count - version: v1 --- apiVersion: capsule.clastix.io/v1beta2 kind: CustomQuota @@ -160,10 +159,9 @@ metadata: spec: limit: 3 sources: - - group: "" + - apiVersion: v1 kind: Pod op: count - version: v1 ``` When we now try to create 6 `Pods` in the namespace `solar-test`, we can observe that the `GlobalCustomQuota` allows only 6 Pods in total across all namespaces of the tenant, while the `CustomQuota` allows only 3 Pods in the `solar-test` namespace: @@ -195,7 +193,7 @@ We can see that requests are blocked because of the limits by the `CustomQuota` A quota may define one or many sources. Each source describes: - * which objects are candidates (`group`, `version`, `kind`) + * which objects are candidates (`apiVersion`, `kind`) * what value is extracted from them ([`path`](#path), if applicable) * how that value contributes to usage ([`op`](#operations)) * optional additional source-level selectors @@ -208,11 +206,10 @@ Sources are evaluated independently and then aggregated into one total. ### GVK -Each source must identify a Kubernetes resource type by Group / Version / Kind. Example for a core Kubernetes Pod: +Each source must identify a Kubernetes resource type by apiVersion / Kind. Example for a core Kubernetes Pod: ```yaml -group: "" -version: v1 +apiVersion: v1 kind: Pod ``` From 384b736bf7049ca335e62868af68b14a9d2dc934 Mon Sep 17 00:00:00 2001 From: sandert-k8s Date: Fri, 5 Jun 2026 08:04:49 +0200 Subject: [PATCH 2/2] chore: fix lb path Signed-off-by: sandert-k8s --- content/en/docs/resource-management/customquotas/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/resource-management/customquotas/_index.md b/content/en/docs/resource-management/customquotas/_index.md index d4edd95..8efec3f 100644 --- a/content/en/docs/resource-management/customquotas/_index.md +++ b/content/en/docs/resource-management/customquotas/_index.md @@ -614,7 +614,7 @@ spec: op: count selectors: - fieldSelectors: - - '.spec.type[?(@=="LoadBalancer")]' + - '.spec.type=="LoadBalancer"' ``` #### Aggregate ephemeral and persistent storage @@ -901,7 +901,7 @@ spec: op: count selectors: - fieldSelectors: - - '.spec.type[?(@=="LoadBalancer")]' + - '.spec.type=="LoadBalancer"' ``` #### Limit total memory requests of Pods in one namespace