Repository navigation
docs: add priority class rules and mutation - #182
Merged
oliverbaehler merged 6 commits intoNov 9, 2026
Merged
oliverbaehler merged 6 commits into
oliverbaehler merged 6 commits into
Conversation
Signed-off-by: Oliver Baehler <oliver@sudo-i.net>
Signed-off-by: Hristo Hristov <me@hhristov.info>
✅ Deploy Preview for docs-projectcapsule ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The release note incorrectly says existing generators receive no entries, but templates using missingKey: error can fail reconciliation when status.classes.priority is absent and need migration or a missing-key guard.
1 open issue
What changed in this PR
This documentation update explains namespace-specific PriorityClass enforcement and mutation in Capsule, including migration from legacy Tenant settings.
Changes:
- Documents PriorityClass matching, mutation, controller targets, and update behavior.
- Adds configuration examples and guidance for combining legacy settings with namespace rules.
- Updates release notes and replication examples for the removal of
status.classes.priority.
| File | Description |
|---|---|
content/en/docs/whats-new.md |
Announces PriorityClass features and the status-field removal. |
content/en/docs/tenants/enforcement.md |
Links legacy settings to new rules and migration guidance. |
content/en/docs/rules/mutate/workloads.md |
Documents PriorityClass assignment and merge/replace behavior. |
content/en/docs/rules/mutate/_index.md |
Adds class mutation semantics to shared guidance. |
content/en/docs/rules/enforcement/workloads.md |
Adds PriorityClass enforcement, targeting, and migration examples. |
content/en/docs/rules/_index.md |
Clarifies conditional PriorityClass checks on updates. |
content/en/docs/replications/tenant.md |
Removes the obsolete priority-class status example. |
content/en/docs/replications/global.md |
Switches generated RBAC examples to storage classes and updates status. |
Review effort: Balanced
Signed-off-by: Hristo Hristov <me@hhristov.info>
Signed-off-by: Hristo Hristov <me@hhristov.info>
Signed-off-by: Hristo Hristov <me@hhristov.info>
oliverbaehler
approved these changes
Nov 9, 2026
oliverbaehler
merged commit Nov 9, 2026
906877e
into
projectcapsule:release/0.16
5 of 6 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request introduces comprehensive documentation and example updates to support fine-grained enforcement and mutation of Kubernetes Pod priority classes within Capsule. It adds detailed explanations, configuration examples, and migration guidance for priority class policies, and updates related sample manifests and references accordingly.
Major documentation additions and updates:
Priority class policy enforcement:
workloads.md, covering configuration, matching by name/regex/labels, audit/deny/allow actions, controller template handling, update behaviors, namespace profiles, and migration from legacy fields.Mutation documentation:
classes.prioritycan be assigned via mutation in merge/replace modes, and updated property tables to includeclasses. [1] [2]Example and sample manifest updates:
Tenant resource and status examples:
global.mdandtenant.mdto remove legacy priority class fields and references, focusing on storage classes instead. [1] [2] [3]Other related clarifications:
Update and enforcement behavior:
rules/_index.mdthat priority class enforcement is reevaluated on updates only when allow/deny rules have conditions.