Skip to content

feat: add not-equals field selector support in CustomQuotas documentation#99

Merged
sandert-k8s merged 2 commits into
projectcapsule:mainfrom
sandert-k8s:customquota-not-equals
Jul 6, 2026
Merged

feat: add not-equals field selector support in CustomQuotas documentation#99
sandert-k8s merged 2 commits into
projectcapsule:mainfrom
sandert-k8s:customquota-not-equals

Conversation

@sandert-k8s

Copy link
Copy Markdown
Collaborator

No description provided.

…tion

Signed-off-by: sandert-k8s <sandert98@gmail.com>
Signed-off-by: sandert-k8s <sandert98@gmail.com>
Copilot AI review requested due to automatic review settings July 5, 2026 14:25
@netlify

netlify Bot commented Jul 5, 2026

Copy link
Copy Markdown

Deploy Preview for docs-projectcapsule ready!

Name Link
🔨 Latest commit 4d8af71
🔍 Latest deploy log https://app.netlify.com/projects/docs-projectcapsule/deploys/6a4a6968675d980008066f1d
😎 Deploy Preview https://deploy-preview-99--docs-projectcapsule.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the documentation to describe and demonstrate support for a not-equals (!=) field selector syntax in CustomQuotas/GlobalCustomQuotas, including updated examples and an additional reference-table field.

Changes:

  • Add a new “Not-Equals” section describing != field selector behavior and recommended usage patterns.
  • Update existing selector examples to use != syntax (notably for excluding completed Pods from CPU/memory accounting).
  • Add clusterScoped to two API reference tables.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
content/en/docs/resource-management/customquotas/_index.md Adds != field selector documentation and updates selector examples accordingly.
content/en/docs/reference.md Adds clusterScoped as a documented field in two reference tables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +248 to +250
> **Recommended for CPU and memory resources**
>
> Kubernetes built-in [`ResourceQuota`](https://kubernetes.io/docs/concepts/policy/resource-quotas/#compute-resource-quota) excludes terminal Pods (those in `Succeeded`, `Failed`, or `Unknown` phase) from CPU and memory accounting by default, because those Pods no longer hold resources on the kubelet. When defining CustomQuotas or GlobalCustomQuotas for CPU or memory resources, it is strongly recommended to use `!=` field selectors to exclude terminal Pods and match this behavior.
Comment on lines 699 to +701
#### Calculate total requested CPU across tenant namespaces (Running Pods)

This pattern mirrors the default behavior of Kubernetes `ResourceQuota`, which excludes terminal Pods from CPU and memory accounting.
| :---- | :---- | :----------- | :-------- |
| **status** | enum | status of the condition, one of True, False, Unknown.<br/>*Enum*: True, False, Unknown<br/> | true |
| **type** | string | type of condition in CamelCase or in foo.example.com/CamelCase. | true |
| **clusterScoped** | boolean | Indicates whether the referenced resource is cluster-scoped. | false |
@sandert-k8s sandert-k8s merged commit 1d07faf into projectcapsule:main Jul 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants