diff --git a/content/en/docs/operating/setup/configuration.md b/content/en/docs/operating/setup/configuration.md index b1240ca..ff07d7a 100644 --- a/content/en/docs/operating/setup/configuration.md +++ b/content/en/docs/operating/setup/configuration.md @@ -128,6 +128,69 @@ manager: cacheInvalidation: 0h30m0s ``` +### `namespaceCleanup` + +Configures the forced cleanup Capsule runs on a terminating `Namespace` of a `Tenant` so it does not stay stuck in `Terminating`. Once the `Namespace` has been terminating for the grace period and no Pods are left, Capsule deletes the remaining objects and removes their finalizers. With `namespaceCleanup` you decide how long the controllers owning those objects get to finish, and which finalizers Capsule never removes. + +[Read More](/docs/tenants/namespaces/#termination) + +Many finalizers release state outside the `Namespace`: cloud load balancers, storage volumes, network allocations, KubeVirt virtual machines, Kamaji control planes, or bare-metal hosts managed by a Cluster API infrastructure provider. When Capsule removes such a finalizer before its controller is done, that state leaks. For example, a Cluster API provider still powering off and wiping a bare-metal host loses track of it: the server stays powered on and claimed by a machine that no longer exists, until someone releases it by hand. + +```yaml +apiVersion: capsule.clastix.io/v1beta2 +kind: CapsuleConfiguration +metadata: + name: default +spec: + namespaceCleanup: + # Time left to the controllers owning the remaining objects, + # measured from the Namespace deletionTimestamp. + gracePeriod: 15m + # Finalizers the cleanup never removes, on any resource. + retainedFinalizers: + - cluster.cluster.x-k8s.io + - machine.cluster.x-k8s.io +``` + +| Field | Default | Description | +| :---- | :------ | :---------- | +| `gracePeriod` | `10s` | How long a terminating `Namespace` is left to the controllers owning its objects, measured from its `deletionTimestamp`. Once it elapses and no Pods are left, the cleanup starts. `0s` starts it as soon as no Pods are left. Negative values are rejected. | +| `retainedFinalizers` | none | Finalizers the cleanup never removes, on any resource, so their controllers can complete however long they take. At most 64 entries, without duplicates. | + +Both fields are optional. Without `namespaceCleanup`, the cleanup starts 10 seconds after the `Namespace` deletion and removes every finalizer except Capsule's own on Capsule's resources. + +Use them together: + +* `gracePeriod` covers controllers that finish within a known time. +* `retainedFinalizers` covers controllers that must never be bypassed, whatever it takes. A `Namespace` holding a retained finalizer stays `Terminating` until its controller removes it. + +Capsule's own finalizers (`controller.projectcapsule.dev/finalize` and `capsule.clastix.io/resources`) are always retained on Capsule's resources: you don't need to list them. + +To find the finalizers held by the objects of a `Namespace`, inspect them while they are terminating, for example: + +```shell +kubectl get clusters.cluster.x-k8s.io -n solar-production -o custom-columns=NAME:.metadata.name,FINALIZERS:.metadata.finalizers +``` + +Changes apply without restarting the controller, also to `Namespaces` already terminating: + +* A `Namespace` within its grace period is rechecked at least once a minute, so a shortened `gracePeriod` applies within a minute. +* The cleanup runs every 5 seconds while objects are left, so a finalizer removed from `retainedFinalizers` is removed on the next pass. + +{{% alert title="Warning" color="warning" %}} +Both settings trade safety for deletion speed: + +* A `Tenant` is deleted only once its `Namespaces` are gone, so a longer `gracePeriod` also delays the `Tenant` deletion. +* Tenant owners can add a listed finalizer to their own objects and hold their `Namespace`, and the `Tenant`, in deletion until the finalizer is removed. List only finalizers whose controllers you trust to remove them. +{{% /alert %}} + +The Helm chart does not expose `namespaceCleanup` yet. Set it on the `CapsuleConfiguration` directly; the chart does not render these fields, so a Helm upgrade keeps them: + +```shell +kubectl patch capsuleconfiguration default --type merge \ + -p '{"spec":{"namespaceCleanup":{"gracePeriod":"15m","retainedFinalizers":["cluster.cluster.x-k8s.io","machine.cluster.x-k8s.io"]}}}' +``` + ### `rbac` Define configurations for the RBAC which is being managed and applied by Capsule. diff --git a/content/en/docs/proxy/reference.md b/content/en/docs/proxy/reference.md index 21a798d..4d65cc4 100644 --- a/content/en/docs/proxy/reference.md +++ b/content/en/docs/proxy/reference.md @@ -47,7 +47,7 @@ GlobalProxySettingsSpec defines the desired state of GlobalProxySettings. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **[rules](#globalproxysettingsspecrulesindex)** | []object | Subjects that should receive additional permissions.
The subjects are selected based on the oncoming requests. They don't have to relate to an existing tenant.
However they must be part of the capsule-user groups. | true | +| **[rules](#globalproxysettingsspecrulesindex)** | []object | Subjects that should receive additional permissions.
The subjects are selected based on the oncoming requests. They don't have to relate to an existing tenant.
By default, callers must be recognized as Capsule identities.
Set --require-capsule-user=false to also allow authenticated non-Capsule subjects. | true | ### GlobalProxySettings.spec.rules[index] @@ -59,7 +59,7 @@ GlobalProxySettingsSpec defines the desired state of GlobalProxySettings. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **[subjects](#globalproxysettingsspecrulesindexsubjectsindex)** | []object | Subjects that should receive additional permissions.
The subjects are selected based on the oncoming requests. They don't have to relate to an existing tenant.
However they must be part of the capsule-user groups. | true | +| **[subjects](#globalproxysettingsspecrulesindexsubjectsindex)** | []object | Subjects that should receive additional permissions.
The subjects are selected based on the oncoming requests. They don't have to relate to an existing tenant.
By default, callers must be recognized as Capsule identities.
Set --require-capsule-user=false to also allow authenticated non-Capsule subjects. | true | | **[clusterResources](#globalproxysettingsspecrulesindexclusterresourcesindex)** | []object | Cluster Resources for tenant Owner. | false | diff --git a/content/en/docs/reference.md b/content/en/docs/reference.md index 282dd41..7ab9f77 100644 --- a/content/en/docs/reference.md +++ b/content/en/docs/reference.md @@ -78,6 +78,7 @@ CapsuleConfigurationSpec defines the Capsule configuration. | **forceTenantPrefix** | boolean | Enforces the Tenant owner, during Namespace creation, to name it using the selected Tenant name as prefix,
separated by a dash. This is useful to avoid Namespace name collision in a public CaaS environment.
*Default*: false
| false | | **ignoreUserWithGroups** | []string | Define groups which when found in the request of a user will be ignored by the Capsule
this might be useful if you have one group where all the users are in, but you want to separate administrators from normal users with additional groups. | false | | **[impersonation](#capsuleconfigurationspecimpersonation)** | object | Service Account Client configuration for impersonation properties | false | +| **[namespaceCleanup](#capsuleconfigurationspecnamespacecleanup)** | object | Forced cleanup of terminating Tenant namespaces. | false | | **[nodeMetadata](#capsuleconfigurationspecnodemetadata)** | object | Allows to set the forbidden metadata for the worker nodes that could be patched by a Tenant.
This applies only if the Tenant has an active NodeSelector, and the Owner have right to patch their nodes. | false | | **[overrides](#capsuleconfigurationspecoverrides)** | object | Allows to set different name rather than the canonical one for the Capsule configuration objects,
such as webhook secret or configurations.
*Default*: map[TLSSecretName:capsule-tls mutatingWebhookConfigurationName:capsule-mutating-webhook-configuration validatingWebhookConfigurationName:capsule-validating-webhook-configuration]
| false | | **protectedNamespaceRegex** | string | Disallow creation of namespaces, whose name matches this regexp | false | @@ -606,6 +607,19 @@ Service Account Client configuration for impersonation properties | **tenantDefaultServiceAccount** | string | Default ServiceAccount for namespaced resources (TenantResource)
When defined, users are required to use this ServiceAccount within the namespace
where they deploy the resource, unless they explicitly provide their own. | false | +### CapsuleConfiguration.spec.namespaceCleanup + + + +Forced cleanup of terminating Tenant namespaces. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **gracePeriod** | string | Time a terminating Tenant namespace is left to the controllers owning its
remaining objects, measured from the namespace deletionTimestamp. Once it
elapses and no Pods are left, Capsule deletes the remaining objects and
removes their finalizers, except the retained ones. Finalizers often release
resources outside the namespace, such as Cluster API infrastructure providers
powering off and releasing bare-metal hosts, and can need longer than the
default. When unset, the cleanup starts 10 seconds after the namespace deletion. | false | +| **retainedFinalizers** | []string | Finalizers the cleanup never removes, on any resource, so the controllers
owning them can complete however long they take. Capsule's own finalizers
are always retained on Capsule's resources and need not be listed.
A tenant can add a listed finalizer to its own objects, holding its
namespace, and the Tenant, in deletion until the finalizer is removed: list
only finalizers whose controllers can be trusted to remove them. | false | + + ### CapsuleConfiguration.spec.nodeMetadata @@ -1415,10 +1429,13 @@ GlobalTenantResourceSpec defines the desired state of GlobalTenantResource. | **[settings](#globaltenantresourcespecsettings)** | object | Deprecated: configure resources[].policy instead. Admission converts Settings
into policies for blocks without one. Retained as a compatibility fallback
for stored resources that have not passed through admission again.

*Default*: map[]
| true | | **cordoned** | boolean | When cordoning a replication it will no longer execute any applies or deletions (paused).
This is useful for maintenances
*Default*: false
| false | | **[dependsOn](#globaltenantresourcespecdependsonindex)** | []object | DependsOn may contain a meta.NamespacedObjectReference slice
with references to TenantResource resources that must be ready before this
TenantResource can be reconciled. | false | +| **[healthChecks](#globaltenantresourcespechealthchecks)** | object | HealthChecks optionally requires applied targets to become healthy before Ready.
Omitted health checks preserve apply-only readiness and perform no health reads. | false | | **pruningOnDelete** | boolean | When the replicated resource manifest is deleted, all the objects replicated so far will be automatically deleted.
Disable this to keep replicated resources although the deletion of the replication manifest.

Deprecated: use resources[].policy.deletion instead. Retained for blocks without a policy.

*Default*: true
| false | | **scope** | enum | Resource Scope, Can either be
- Tenant: Create Resources for each tenant in selected Tenants
- Namespace: Create Resources for each namespace in selected Tenants
*Enum*: Namespace, Tenant, None
*Default*: Namespace
| false | | **[serviceAccount](#globaltenantresourcespecserviceaccount)** | object | Local ServiceAccount which will perform all the actions defined in the TenantResource
You must provide permissions accordingly to that ServiceAccount | false | | **[tenantSelector](#globaltenantresourcespectenantselector)** | object | Defines the Tenant selector used target the tenants on which resources must be propagated. | false | +| **triggerMinInterval** | string | TriggerMinInterval bounds triggered reconciliation frequency across all triggers
on this resource. Events within the interval coalesce into one pending reconcile.
Spec changes, deletion, manual requests, and periodic resyncs retain their behavior.
*Default*: 10s
| false | +| **[triggers](#globaltenantresourcespectriggersindex)** | []object | Triggers request reconciliation on observed namespaced resource changes.
Capsule-managed resources never trigger reconciliation. Delivery is best effort;
bounded watch memory may skip large objects or updates without a retained old state.
resyncPeriod remains the recovery mechanism for missed events. | false | ### GlobalTenantResource.spec.resources[index] @@ -1645,6 +1662,37 @@ LocalObjectReference contains enough information to locate the referenced Kubern | **name** | string | Name of the referent. | true | +### GlobalTenantResource.spec.healthChecks + + + +HealthChecks optionally requires applied targets to become healthy before Ready. +Omitted health checks preserve apply-only readiness and perform no health reads. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[expressions](#globaltenantresourcespechealthchecksexpressionsindex)** | []object | Expressions override kstatus for the specified API groups and kinds.
Expressions receive object and its top-level fields (metadata, spec, status).
Evaluated in order: inProgress, failed, current. Requires wait: true. | false | +| **timeout** | string | Timeout bounds an incomplete rollout across retries and leader changes.
Defaults to five minutes. A completed rollout can start a new assessment. | false | +| **wait** | boolean | Wait requires successfully applied targets to pass health checks before Ready.
Omitted or false preserves apply-only readiness and performs no health reads. | false | + + +### GlobalTenantResource.spec.healthChecks.expressions[index] + + + + + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **apiVersion** | string | APIVersion identifies the API group; the served version is ignored when matching. | true | +| **current** | string | Current returns true when the target is healthy. | true | +| **kind** | string | Kind identifies the kind whose status is evaluated. | true | +| **failed** | string | Failed returns true on a failed rollout. | false | +| **inProgress** | string | InProgress returns true while reconciliation is ongoing. | false | + + ### GlobalTenantResource.spec.serviceAccount @@ -1676,6 +1724,111 @@ Defines the Tenant selector used target the tenants on which resources must be p +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### GlobalTenantResource.spec.triggers[index] + + + +TenantResourceTrigger requests best-effort reconciliation on observed resource changes. +Resource behavior and replication destinations remain defined by resources. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **name** | string | Name uniquely identifies this trigger. | true | +| **apiGroups** | []string | APIGroups selects explicit API groups. Use "" for the core API group.
Wildcards are unsupported. | false | +| **apiVersions** | []string | APIVersions selects explicit API versions, such as "v1". Wildcards are unsupported. | false | +| **[audience](#globaltenantresourcespectriggersindexaudienceindex)** | []object | Deprecated: watches do not carry request identities. Audience must be empty. | false | +| **[matchConditions](#globaltenantresourcespectriggersindexmatchconditionsindex)** | []object | MatchConditions are CEL conditions over object, oldObject and operation. All must match. | false | +| **[namespaceSelector](#globaltenantresourcespectriggersindexnamespaceselector)** | object | NamespaceSelector selects event source namespaces for GlobalTenantResources.
TenantResources always observe only their own namespace and cannot set this field. | false | +| **[objectSelector](#globaltenantresourcespectriggersindexobjectselector)** | object | ObjectSelector matches the labels of either the old or new observed object. | false | +| **operations** | []string | Operations selects observed CREATE, UPDATE, and DELETE events.
A single "*" selects all three. CONNECT is unsupported by watches. | false | +| **resources** | []string | Resources selects explicit plural top-level resource names, such as "configmaps".
Wildcards are unsupported. Subresources, such as "pods/log", are unsupported. | false | +| **scope** | string | Scope may be omitted or set to "Namespaced". Watches only observe namespaced resources. | false | + + +### GlobalTenantResource.spec.triggers[index].audience[index] + + + + + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **kind** | enum |
*Enum*: User, Group, ServiceAccount, Custom
| true | +| **name** | string | | true | + + +### GlobalTenantResource.spec.triggers[index].matchConditions[index] + + + +TenantResourceTriggerCondition filters an observed resource change using CEL. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **expression** | string | Expression must evaluate to bool using only the observed event variables:
object is the new persisted object (null for DELETE), oldObject is the previous
persisted object (null for CREATE), and operation is "CREATE", "UPDATE", or "DELETE".
Admission request and authorizer variables are unavailable. For example:
operation != 'UPDATE' || object.data != oldObject.data | true | +| **name** | string | Name uniquely identifies this condition within a trigger. It must be a Kubernetes
qualified name, optionally prefixed with a DNS subdomain and '/'. | true | + + +### GlobalTenantResource.spec.triggers[index].namespaceSelector + + + +NamespaceSelector selects event source namespaces for GlobalTenantResources. +TenantResources always observe only their own namespace and cannot set this field. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#globaltenantresourcespectriggersindexnamespaceselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### GlobalTenantResource.spec.triggers[index].namespaceSelector.matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### GlobalTenantResource.spec.triggers[index].objectSelector + + + +ObjectSelector matches the labels of either the old or new observed object. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#globaltenantresourcespectriggersindexobjectselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### GlobalTenantResource.spec.triggers[index].objectSelector.matchExpressions[index] + + + A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. @@ -1698,10 +1851,13 @@ GlobalTenantResourceStatus defines the observed state of GlobalTenantResource. | :---- | :---- | :----------- | :-------- | | **size** | integer | Number of managed resources. | true | | **[conditions](#globaltenantresourcestatusconditionsindex)** | []object | Condition of the GlobalTenantResource. | false | +| **[health](#globaltenantresourcestatushealth)** | object | Health records the durable rollout deadline and bounded health-check progress. | false | +| **nextResyncAt** | string | NextResyncAt is the next periodic resync deadline for trigger-enabled replications.
*Format*: date-time
| false | | **observedGeneration** | integer | ObservedGeneration is the most recent generation the controller has observed.
*Format*: int64
| false | | **[processedItems](#globaltenantresourcestatusprocesseditemsindex)** | []object | List of resources managed by the API object. | false | | **selectedTenants** | []string | List of Tenants addressed by the GlobalTenantResource. | false | | **[serviceAccount](#globaltenantresourcestatusserviceaccount)** | object | Serviceaccount used for impersonation | false | +| **[trigger](#globaltenantresourcestatustrigger)** | object | Trigger records the last watch notification handled by this controller. | false | ### GlobalTenantResource.status.conditions[index] @@ -1721,6 +1877,28 @@ Condition contains details for one aspect of the current state of this API Resou | **observedGeneration** | integer | observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
*Format*: int64
*Minimum*: 0
| false | +### GlobalTenantResource.status.health + + + +Health records the durable rollout deadline and bounded health-check progress. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **deadline** | string |
*Format*: date-time
| true | +| **observedGeneration** | integer |
*Format*: int64
| true | +| **requestedAt** | string |
*Format*: date-time
| true | +| **revision** | string | | true | +| **startedAt** | string |
*Format*: date-time
| true | +| **applying** | boolean | Applying prevents observations from completing while a full apply is in flight. | false | +| **cursor** | integer |
*Format*: int32
*Minimum*: 0
| false | +| **failed** | boolean | | false | +| **message** | string | | false | +| **nextCheckAt** | string |
*Format*: date-time
| false | +| **pending** | boolean | | false | + + ### GlobalTenantResource.status.processedItems[index] @@ -1753,11 +1931,26 @@ Advanced Status Item for pin pointing items in tenants/namespaces. | **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 | | **created** | boolean | Indicates wether the resource was created or adopted | false | +| **[health](#globaltenantresourcestatusprocesseditemsindexstatushealth)** | object | Health pins an opt-in health check to the successfully applied object. | false | | **lastApply** | string | An opaque value that represents the internal version of this object that can
be used by clients to determine when objects have changed. May be used for optimistic
concurrency, change detection, and the watch operation on a resource or set of resources.
Clients must treat these values as opaque and passed unmodified back to the server.
They may only be valid for a particular resource or set of resources.

Populated by the system.
Read-only.
Value must be treated as opaque by clients and .
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
*Format*: date-time
| false | | **message** | string | message is a human readable message indicating details about the transition.
This may be an empty string. | false | | **[policy](#globaltenantresourcestatusprocesseditemsindexstatuspolicy)** | object | Policy is a lifecycle snapshot for protection and cleanup. Conditions are
evaluated from the source block and omitted here. Failed updates retain the
previous snapshot; a first successful content write records its policy even
if metadata reconciliation fails, so cleanup respects explicit retention.
An absent policy on an already applied item preserves legacy behavior. | false | +### GlobalTenantResource.status.processedItems[index].status.health + + + +Health pins an opt-in health check to the successfully applied object. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **digest** | string | Digest identifies an opaque content-write revision, including objects without generations.
It is not a checksum of rendered manifests or Secret values. | true | +| **generation** | integer |
*Format*: int64
| true | +| **uid** | string | UID is a type that holds unique ID values, including UUIDs. Because we
don't ONLY use UUIDs, this is an alias to string. Being a type captures
intent and helps make sure that UIDs and names do not get conflated. | true | + + ### GlobalTenantResource.status.processedItems[index].status.policy @@ -1789,6 +1982,19 @@ Serviceaccount used for impersonation | **name** | string | Name of the referent. | true | | **namespace** | string | Namespace of the referent. | true | + +### GlobalTenantResource.status.trigger + + + +Trigger records the last watch notification handled by this controller. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **lastTriggeredAt** | string | LastTriggeredAt is the start of the last triggered reconcile, including failed attempts.
*Format*: date-time
| true | +| **observedRequest** | string | ObservedRequest identifies the notification included in the last triggered reconcile. | true | + ## QuantityLedger @@ -2361,11 +2567,12 @@ Enforcement for given rule | :---- | :---- | :----------- | :-------- | | **action** | enum | Declare the action being performed on the enforcement rule:
deny: On match, deny admission request
allow: On match, allowed admission request
audit: On match, audit (post event) of admission request
*Enum*: allow, deny, audit
*Default*: deny
| false | | **[conditions](#rulestatusspecindexenforceconditionsindex)** | []object | Conditions gate this entire enforcement rule, including workloads, services,
metadata, ingress, network and storage. All conditions must be true; empty means apply.
Conditions run during admission; managed metadata in a conditional rule
is applied on matching requests only and is not reconciled in the background. | false | +| **[devices](#rulestatusspecindexenforcedevices)** | object | Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. | false | | **[ingress](#rulestatusspecindexenforceingress)** | object | Enforcement for Ingress and Gateway API resource hostnames. | false | | **[metadata](#rulestatusspecindexenforcemetadataindex)** | []object | Enforcement for object metadata on namespaced resources. | false | | **[network](#rulestatusspecindexenforcenetwork)** | object | Network configures network enforcement for namespace resources. | false | | **[services](#rulestatusspecindexenforceservices)** | object | Enforcement for Services. | false | -| **[storage](#rulestatusspecindexenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label. | false | +| **[storage](#rulestatusspecindexenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label,
and the classes storage objects may reference. | false | | **[workloads](#rulestatusspecindexenforceworkloads)** | object | Enforcement for native workload kinds and Pod properties. | false | @@ -2385,6 +2592,65 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### RuleStatus.spec[index].enforce.devices + + + +Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusspecindexenforcedevicesclassesindex)** | []object | Classes matches DeviceClasses by name or existing class labels. Entries are
ORed; each requested class is evaluated independently in rule order.
An applicable allow list rejects unmatched classes. Audit never grants access.
Legacy Tenant.spec.deviceClasses restrictions remain an additional boundary. | false | + + +### RuleStatus.spec[index].enforce.devices.classes[index] + + + +DeviceClassMatch ORs exact names, a name expression, and a label selector. +At least one criterion is required by rule admission validation. As with +placement expressions, this is checked outside CEL to bound schema cost. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of these class names. | false | +| **exp** | string | Exp matches regular expression. | false | +| **negate** | boolean | Negate inverts the match result. Omitted means false. | false | +| **[selector](#rulestatusspecindexenforcedevicesclassesindexselector)** | object | Selector matches labels on the DeviceClass, not the claim or namespace.
Omitted means no label criterion; explicit {} matches every existing class.
References must resolve when selectors participate in allow/deny enforcement. | false | + + +### RuleStatus.spec[index].enforce.devices.classes[index].selector + + + +Selector matches labels on the DeviceClass, not the claim or namespace. +Omitted means no label criterion; explicit {} matches every existing class. +References must resolve when selectors participate in allow/deny enforcement. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#rulestatusspecindexenforcedevicesclassesindexselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.spec[index].enforce.devices.classes[index].selector.matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.spec[index].enforce.ingress @@ -2394,8 +2660,42 @@ Enforcement for Ingress and Gateway API resource hostnames. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusspecindexenforceingressclassesindex)** | []object | Classes matches IngressClass or GatewayClass names and labels. Entries,
and the criteria within each entry, are ORed. Label selectors read the
referenced class, not the ingress or namespace. Exact and exp need no read.
Classless objects are rejected by applicable allow/deny class rules.
Legacy Tenant class restrictions remain an additional boundary. | false | | **[hostnames](#rulestatusspecindexenforceingresshostnamesindex)** | []object | Hostnames defines allowed, denied, or audited hostname expressions.
A resource targeted by an allow or deny rule must declare non-empty values
in all hostname fields. Audit-only rules record missing hostnames without
denying them. | false | -| **types** | []enum | Types defines the resource kinds to which hostname enforcement applies.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | +| **types** | []enum | Types defines the resource kinds to which enforcement applies. Classes
apply to Ingress and Gateway; hostnames apply to every supported type.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same rules to prevent bypass through another version.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | + + +### RuleStatus.spec[index].enforce.ingress.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusspecindexenforceingressclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.spec[index].enforce.ingress.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | ### RuleStatus.spec[index].enforce.ingress.hostnames[index] @@ -2635,14 +2935,84 @@ NodePorts defines additional constraints for nodePort values. -Additional access to PersistentVolumes without a tenant ownership label. +Additional access to PersistentVolumes without a tenant ownership label, +and the classes storage objects may reference. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[attributeClasses](#rulestatusspecindexenforcestorageattributeclassesindex)** | []object | AttributeClasses matches PersistentVolumeClaim
spec.volumeAttributesClassName. Entries are ORed. Targets don't apply. A
claim without a class is not matched, since Kubernetes then applies none.
Updates are only matched when they change the class to one other than
status.currentVolumeAttributesClassName: restoring the applied class
cancels a modification. | false | +| **[classes](#rulestatusspecindexenforcestorageclassesindex)** | []object | Classes matches the class referenced by each targeted object. Entries are
ORed. An allow or deny rule requires the targeted object to name a class
whenever the class would otherwise be defaulted after admission. Without
targets, classes apply to every supported kind. | false | +| **targets** | []enum | Targets selects the kinds whose class reference is matched against classes.
volumesnapshot matches VolumeSnapshot spec.volumeSnapshotClassName.
Omitted targets select every supported kind. Requires classes.
*Enum*: volumesnapshot
| false | | **[volumes](#rulestatusspecindexenforcestoragevolumesindex)** | []object | Volumes matches additional PersistentVolumes. Entries are ORed. Conditions
on the enclosing enforcement rule must also match. The last matching
allow/deny decides the exception; audit never grants access. | false | +### RuleStatus.spec[index].enforce.storage.attributeClasses[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusspecindexenforcestorageattributeclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.spec[index].enforce.storage.attributeClasses[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.spec[index].enforce.storage.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusspecindexenforcestorageclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.spec[index].enforce.storage.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.spec[index].enforce.storage.volumes[index] @@ -2695,6 +3065,7 @@ Enforcement for native workload kinds and Pod properties. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusspecindexenforceworkloadsclasses)** | object | Classes matches the classes referenced by Pods. | false | | **[disruptionBudgets](#rulestatusspecindexenforceworkloadsdisruptionbudgets)** | object | DisruptionBudgets constrains PDB coverage of selected Pods and controller templates.
Only whole-workload targets apply; omitted targets select Pods. | false | | **[placement](#rulestatusspecindexenforceworkloadsplacement)** | object | Placement matches the Pod scheduler and scheduling constraints. | false | | **qosClasses** | []string | Define Pod QoS classes matched by this enforcement rule.
Supported values are Guaranteed, Burstable and BestEffort. | false | @@ -2705,22 +3076,101 @@ Enforcement for native workload kinds and Pod properties. | **targets** | []string | Targets selects native workloads and, optionally, parts of their Pod specs.
With no workload policies, the action matches the selected kinds themselves.
With policies, targets scopes those policies; it does not also match the kind.
Omitted targets preserve Pod-only defaults. Controller targets are opt-in.
Whole-controller targets include every compatible location in the Pod template.
Existing pod and pod/* part targets retain their established policy scope. | false | -### RuleStatus.spec[index].enforce.workloads.disruptionBudgets +### RuleStatus.spec[index].enforce.workloads.classes -DisruptionBudgets constrains PDB coverage of selected Pods and controller templates. -Only whole-workload targets apply; omitted targets select Pods. +Classes matches the classes referenced by Pods. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **allowOverlap** | boolean | AllowOverlap permits multiple PDBs to select the same Pod or selected
controller template. False rejects overlap for allow/deny actions and
reports violations for audit. True permits overlap in an allow rule;
omitted does not participate in evaluation. Rule ordering is preserved.
Checks run on PDB selector changes and selected Pod/template label changes.
Conditions and audience apply to the admission request, including PDB writes.
Cross-resource admission reads are not an atomic transaction. | false | -| **[evictableReplicas](#rulestatusspecindexenforceworkloadsdisruptionbudgetsevictablereplicas)** | object | EvictableReplicas bounds the configured number of evictable replicas of each
selected Deployment, StatefulSet, ReplicaSet or ReplicationController.
Uses desired spec.replicas and Kubernetes' upward percentage rounding;
zero replicas are exempt. Checks controller writes, /scale, and PDB writes.
Bounds are inclusive nonnegative integers; omitted bounds are unrestricted.
Allow requires compliance; deny/audit match violations, like resource constraints.
Other targets do not have a desired replica count and skip this property.
At least one supported controller target must be explicitly selected. | false | -| **unhealthyPodEvictionPolicies** | []enum | UnhealthyPodEvictionPolicies matches the effective PDB policy. Omission in a
PDB means IfHealthyBudget. Allow accepts listed values; deny/audit match
listed values, like other enum lists. Empty imposes no restriction.
*Enum*: IfHealthyBudget, AlwaysAllow
| false | +| **[priority](#rulestatusspecindexenforceworkloadsclassespriorityindex)** | []object | Priority matches spec.priorityClassName of selected Pods and Pod templates
by name, or by the labels of the PriorityClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes assigns the cluster's global default class before admission, so
that name is matched like an explicit one. A controller template gets its
class only when its Pods are created, so an allow or deny rule that targets
the controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class, and
a missing class never matches it. Priority rules apply to the pod target
and do not run on subresources. An update that keeps the class is only
checked again when an allow or deny class rule has conditions; conditional
audit rules are recorded without taking that decision again.
Legacy Tenant.spec.priorityClasses restrictions remain an additional boundary. | false | +| **[runtime](#rulestatusspecindexenforceworkloadsclassesruntimeindex)** | []object | Runtime matches spec.runtimeClassName of selected Pods and Pod templates
by name, or by the labels of the RuntimeClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes has no default RuntimeClass, mutation has already run, and the
Pod keeps the default runtime of its node. A controller template is not
necessarily classless when its Pods run — a Tenant default or a mutation
rule can assign a class then — so an allow or deny rule that targets the
controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class,
and a missing class never matches it. Runtime rules apply to the pod
target and do not run on subresources. An update that keeps the class is
only checked again when an allow or deny class rule has conditions;
conditional audit rules are recorded without taking that decision again.
Legacy Tenant.spec.runtimeClasses restrictions remain an additional boundary. | false | -### RuleStatus.spec[index].enforce.workloads.disruptionBudgets.evictableReplicas +### RuleStatus.spec[index].enforce.workloads.classes.priority[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusspecindexenforceworkloadsclassespriorityindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.spec[index].enforce.workloads.classes.priority[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.spec[index].enforce.workloads.classes.runtime[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusspecindexenforceworkloadsclassesruntimeindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.spec[index].enforce.workloads.classes.runtime[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.spec[index].enforce.workloads.disruptionBudgets + + + +DisruptionBudgets constrains PDB coverage of selected Pods and controller templates. +Only whole-workload targets apply; omitted targets select Pods. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **allowOverlap** | boolean | AllowOverlap permits multiple PDBs to select the same Pod or selected
controller template. False rejects overlap for allow/deny actions and
reports violations for audit. True permits overlap in an allow rule;
omitted does not participate in evaluation. Rule ordering is preserved.
Checks run on PDB selector changes and selected Pod/template label changes.
Conditions and audience apply to the admission request, including PDB writes.
Cross-resource admission reads are not an atomic transaction. | false | +| **[evictableReplicas](#rulestatusspecindexenforceworkloadsdisruptionbudgetsevictablereplicas)** | object | EvictableReplicas bounds the configured number of evictable replicas of each
selected Deployment, StatefulSet, ReplicaSet or ReplicationController.
Uses desired spec.replicas and Kubernetes' upward percentage rounding;
zero replicas are exempt. Checks controller writes, /scale, and PDB writes.
Bounds are inclusive nonnegative integers; omitted bounds are unrestricted.
Allow requires compliance; deny/audit match violations, like resource constraints.
Other targets do not have a desired replica count and skip this property.
At least one supported controller target must be explicitly selected. | false | +| **unhealthyPodEvictionPolicies** | []enum | UnhealthyPodEvictionPolicies matches the effective PDB policy. Omission in a
PDB means IfHealthyBudget. Allow accepts listed values; deny/audit match
listed values, like other enum lists. Empty imposes no restriction.
*Enum*: IfHealthyBudget, AlwaysAllow
| false | + + +### RuleStatus.spec[index].enforce.workloads.disruptionBudgets.evictableReplicas @@ -3465,9 +3915,11 @@ Mutated values remain subject to all applicable enforcement rules. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
*Enum*: merge, replace
*Default*: merge
| false | +| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName, an omitted priority, runtime or volume attributes class and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, classes.priority, classes.runtime, storage.attributeClass, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
DeviceClass defaults support merge only, preserving every explicit class name.
*Enum*: merge, replace
*Default*: merge
| false | | **[conditions](#rulestatusspecindexmutateindexconditionsindex)** | []object | Conditions gate this entire mutation entry and inspect the object after
preceding mutations. All conditions must be true; empty means apply. | false | +| **[devices](#rulestatusspecindexmutateindexdevices)** | object | Devices configures default DeviceClass references for DRA claims and templates. | false | | **[ingress](#rulestatusspecindexmutateindexingress)** | object | Ingress configures Kubernetes ingress and Gateway API resource mutations. | false | +| **[storage](#rulestatusspecindexmutateindexstorage)** | object | Storage configures defaults for PersistentVolumeClaims. | false | | **[workloads](#rulestatusspecindexmutateindexworkloads)** | object | WorkloadMutation contains typed native Pod values. Empty maps/lists are
preserved so replace can clear a property; nil means the property is omitted.
It applies on Pod creation. Security.ReadOnlyRootFilesystem and
Registries.ImagePullPolicy also apply to newly added ephemeral containers on
subresource updates. Existing containers are never reconciled.
On merge, later entries override hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, matching map keys,
tolerations and spread constraints.
On merge, required affinity restrictions from applicable entries are ANDed. | false | @@ -3487,6 +3939,18 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### RuleStatus.spec[index].mutate[index].devices + + + +Devices configures default DeviceClass references for DRA claims and templates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **class** | string | Class fills an omitted, null, or empty deviceClassName in each existing
exactly request and firstAvailable alternative. Explicit names and request
structure are preserved. The first applicable default wins. Supports merge
only; replace is rejected to preserve scheduler-selected allocations.
Omitted or null supplies no default. Tenant and Namespace templates are
supported; rendered names must satisfy native DeviceClass name validation. | false | + + ### RuleStatus.spec[index].mutate[index].ingress @@ -3496,7 +3960,9 @@ Ingress configures Kubernetes ingress and Gateway API resource mutations. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **class** | string | Class sets the targeted Ingress or Gateway class on CREATE and UPDATE.
Merge fills an absent or empty class, preserving explicit field/annotation
values. Replace sets the class and keeps an existing ingress annotation in
sync. Rule changes do not reconcile existing objects. Templates are allowed;
rendered values must be valid DNS subdomains. Omitted leaves it unchanged. | false | | **[listenerSets](#rulestatusspecindexmutateindexingresslistenersets)** | object | ListenerSets configures gateway.networking.k8s.io/v1 ListenerSets. | false | +| **types** | []enum | Types selects the kinds whose class is set. Required when class is supplied.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same class mutation for version compatibility.
ListenerSet parentRef mutation has its own explicit target and is unchanged.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | ### RuleStatus.spec[index].mutate[index].ingress.listenerSets @@ -3530,6 +3996,18 @@ Attachment remains subject to the parent's allowedListeners configuration. | **namespace** | string | Namespace identifies the parent's namespace. Omitted means the
ListenerSet's namespace; an explicit empty string is invalid. | false | +### RuleStatus.spec[index].mutate[index].storage + + + +Storage configures defaults for PersistentVolumeClaims. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **attributeClass** | string | AttributeClass sets spec.volumeAttributesClassName on PersistentVolumeClaim
creation, including the claims the StatefulSet and ephemeral volume
controllers create from templates under their own identity. Merge fills an
omitted or null class and keeps an empty one, which chooses no class, as
an empty storageClassName opts out of the default StorageClass. The first
applicable merge wins. Replace always sets the class. Updates never change
the class, since a new class modifies the volume. Capsule neither reads nor
creates the VolumeAttributesClass; Kubernetes keeps a claim whose class
doesn't exist pending until it does. Omitted or null leaves the claim
unchanged. Tenant and Namespace templates are supported; rendered names
must satisfy native VolumeAttributesClass name validation. | false | + + ### RuleStatus.spec[index].mutate[index].workloads @@ -3546,12 +4024,26 @@ On merge, required affinity restrictions from applicable entries are ANDed. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusspecindexmutateindexworkloadsclasses)** | object | Classes configures the classes referenced by the Pod. | false | | **[placement](#rulestatusspecindexmutateindexworkloadsplacement)** | object | Placement configures the Pod scheduler and scheduling constraints. | false | | **[registries](#rulestatusspecindexmutateindexworkloadsregistries)** | object | Registries configures Pod image pull secrets and selected containers' pull policies. | false | | **[security](#rulestatusspecindexmutateindexworkloadssecurity)** | object | Security configures Pod and container security settings. | false | | **targets** | []enum | Targets selects compatible Pod locations. Omitted or empty selects all
compatible locations. The pod target includes Pod-level properties and all
container groups; pod/containers, pod/initcontainers and pod/ephemeralcontainers
narrow selection to one group. Controller templates and volumes are not supported.
*Enum*: pod, pod/containers, pod/initcontainers, pod/ephemeralcontainers
| false | +### RuleStatus.spec[index].mutate[index].workloads.classes + + + +Classes configures the classes referenced by the Pod. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **priority** | string | Priority sets spec.priorityClassName on Pod creation, together with the
priority and preemptionPolicy of that PriorityClass. Merge fills an omitted
class; the cluster's global default class, which Kubernetes assigns before
admission, counts as omitted. The first applicable merge wins. Replace
always sets the class. The PriorityClass must exist; Capsule does not create
it. Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native PriorityClass name
validation. Requires the pod target or omitted/empty targets. | false | +| **runtime** | string | Runtime sets spec.runtimeClassName on Pod creation. Merge fills an omitted
class and preserves every class a Pod names: Kubernetes has no default
RuntimeClass, so an omitted class is unset. The first applicable merge
wins. Replace always sets the class. When the entries change the class of
a Pod, Capsule applies the overhead and the scheduling constraints of the
assigned RuntimeClass, as the API server does for the class a Pod names:
the class must exist, and a scheduling nodeSelector that conflicts with
the Pod rejects it. The constraints of the final class are restored when
a replace of nodeSelector or tolerations removes them, also when the
class itself did not change. Constraints the Pod already carries for a
class an entry replaces are residual: they are retained but not restored,
while a class replaced within the entries leaves nothing behind. The
conditions of a later entry see the overhead and the constraints of the
class assigned before them. Capsule does not create the RuntimeClass.
Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native RuntimeClass name
validation. Requires the pod target or omitted/empty targets. | false | + + ### RuleStatus.spec[index].mutate[index].workloads.placement @@ -4348,11 +4840,12 @@ Enforcement for given rule | :---- | :---- | :----------- | :-------- | | **action** | enum | Declare the action being performed on the enforcement rule:
deny: On match, deny admission request
allow: On match, allowed admission request
audit: On match, audit (post event) of admission request
*Enum*: allow, deny, audit
*Default*: deny
| false | | **[conditions](#rulestatusstatusruleenforceconditionsindex)** | []object | Conditions gate this entire enforcement rule, including workloads, services,
metadata, ingress, network and storage. All conditions must be true; empty means apply.
Conditions run during admission; managed metadata in a conditional rule
is applied on matching requests only and is not reconciled in the background. | false | +| **[devices](#rulestatusstatusruleenforcedevices)** | object | Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. | false | | **[ingress](#rulestatusstatusruleenforceingress)** | object | Enforcement for Ingress and Gateway API resource hostnames. | false | | **[metadata](#rulestatusstatusruleenforcemetadataindex)** | []object | Enforcement for object metadata on namespaced resources. | false | | **[network](#rulestatusstatusruleenforcenetwork)** | object | Network configures network enforcement for namespace resources. | false | | **[services](#rulestatusstatusruleenforceservices)** | object | Enforcement for Services. | false | -| **[storage](#rulestatusstatusruleenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label. | false | +| **[storage](#rulestatusstatusruleenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label,
and the classes storage objects may reference. | false | | **[workloads](#rulestatusstatusruleenforceworkloads)** | object | Enforcement for native workload kinds and Pod properties. | false | @@ -4372,6 +4865,65 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### RuleStatus.status.rule.enforce.devices + + + +Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusruleenforcedevicesclassesindex)** | []object | Classes matches DeviceClasses by name or existing class labels. Entries are
ORed; each requested class is evaluated independently in rule order.
An applicable allow list rejects unmatched classes. Audit never grants access.
Legacy Tenant.spec.deviceClasses restrictions remain an additional boundary. | false | + + +### RuleStatus.status.rule.enforce.devices.classes[index] + + + +DeviceClassMatch ORs exact names, a name expression, and a label selector. +At least one criterion is required by rule admission validation. As with +placement expressions, this is checked outside CEL to bound schema cost. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of these class names. | false | +| **exp** | string | Exp matches regular expression. | false | +| **negate** | boolean | Negate inverts the match result. Omitted means false. | false | +| **[selector](#rulestatusstatusruleenforcedevicesclassesindexselector)** | object | Selector matches labels on the DeviceClass, not the claim or namespace.
Omitted means no label criterion; explicit {} matches every existing class.
References must resolve when selectors participate in allow/deny enforcement. | false | + + +### RuleStatus.status.rule.enforce.devices.classes[index].selector + + + +Selector matches labels on the DeviceClass, not the claim or namespace. +Omitted means no label criterion; explicit {} matches every existing class. +References must resolve when selectors participate in allow/deny enforcement. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#rulestatusstatusruleenforcedevicesclassesindexselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rule.enforce.devices.classes[index].selector.matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.status.rule.enforce.ingress @@ -4381,8 +4933,42 @@ Enforcement for Ingress and Gateway API resource hostnames. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusruleenforceingressclassesindex)** | []object | Classes matches IngressClass or GatewayClass names and labels. Entries,
and the criteria within each entry, are ORed. Label selectors read the
referenced class, not the ingress or namespace. Exact and exp need no read.
Classless objects are rejected by applicable allow/deny class rules.
Legacy Tenant class restrictions remain an additional boundary. | false | | **[hostnames](#rulestatusstatusruleenforceingresshostnamesindex)** | []object | Hostnames defines allowed, denied, or audited hostname expressions.
A resource targeted by an allow or deny rule must declare non-empty values
in all hostname fields. Audit-only rules record missing hostnames without
denying them. | false | -| **types** | []enum | Types defines the resource kinds to which hostname enforcement applies.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | +| **types** | []enum | Types defines the resource kinds to which enforcement applies. Classes
apply to Ingress and Gateway; hostnames apply to every supported type.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same rules to prevent bypass through another version.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | + + +### RuleStatus.status.rule.enforce.ingress.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusruleenforceingressclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rule.enforce.ingress.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | ### RuleStatus.status.rule.enforce.ingress.hostnames[index] @@ -4622,14 +5208,84 @@ NodePorts defines additional constraints for nodePort values. -Additional access to PersistentVolumes without a tenant ownership label. +Additional access to PersistentVolumes without a tenant ownership label, +and the classes storage objects may reference. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[attributeClasses](#rulestatusstatusruleenforcestorageattributeclassesindex)** | []object | AttributeClasses matches PersistentVolumeClaim
spec.volumeAttributesClassName. Entries are ORed. Targets don't apply. A
claim without a class is not matched, since Kubernetes then applies none.
Updates are only matched when they change the class to one other than
status.currentVolumeAttributesClassName: restoring the applied class
cancels a modification. | false | +| **[classes](#rulestatusstatusruleenforcestorageclassesindex)** | []object | Classes matches the class referenced by each targeted object. Entries are
ORed. An allow or deny rule requires the targeted object to name a class
whenever the class would otherwise be defaulted after admission. Without
targets, classes apply to every supported kind. | false | +| **targets** | []enum | Targets selects the kinds whose class reference is matched against classes.
volumesnapshot matches VolumeSnapshot spec.volumeSnapshotClassName.
Omitted targets select every supported kind. Requires classes.
*Enum*: volumesnapshot
| false | | **[volumes](#rulestatusstatusruleenforcestoragevolumesindex)** | []object | Volumes matches additional PersistentVolumes. Entries are ORed. Conditions
on the enclosing enforcement rule must also match. The last matching
allow/deny decides the exception; audit never grants access. | false | +### RuleStatus.status.rule.enforce.storage.attributeClasses[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusruleenforcestorageattributeclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rule.enforce.storage.attributeClasses[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.status.rule.enforce.storage.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusruleenforcestorageclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rule.enforce.storage.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.status.rule.enforce.storage.volumes[index] @@ -4682,6 +5338,7 @@ Enforcement for native workload kinds and Pod properties. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusruleenforceworkloadsclasses)** | object | Classes matches the classes referenced by Pods. | false | | **[disruptionBudgets](#rulestatusstatusruleenforceworkloadsdisruptionbudgets)** | object | DisruptionBudgets constrains PDB coverage of selected Pods and controller templates.
Only whole-workload targets apply; omitted targets select Pods. | false | | **[placement](#rulestatusstatusruleenforceworkloadsplacement)** | object | Placement matches the Pod scheduler and scheduling constraints. | false | | **qosClasses** | []string | Define Pod QoS classes matched by this enforcement rule.
Supported values are Guaranteed, Burstable and BestEffort. | false | @@ -4692,6 +5349,85 @@ Enforcement for native workload kinds and Pod properties. | **targets** | []string | Targets selects native workloads and, optionally, parts of their Pod specs.
With no workload policies, the action matches the selected kinds themselves.
With policies, targets scopes those policies; it does not also match the kind.
Omitted targets preserve Pod-only defaults. Controller targets are opt-in.
Whole-controller targets include every compatible location in the Pod template.
Existing pod and pod/* part targets retain their established policy scope. | false | +### RuleStatus.status.rule.enforce.workloads.classes + + + +Classes matches the classes referenced by Pods. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[priority](#rulestatusstatusruleenforceworkloadsclassespriorityindex)** | []object | Priority matches spec.priorityClassName of selected Pods and Pod templates
by name, or by the labels of the PriorityClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes assigns the cluster's global default class before admission, so
that name is matched like an explicit one. A controller template gets its
class only when its Pods are created, so an allow or deny rule that targets
the controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class, and
a missing class never matches it. Priority rules apply to the pod target
and do not run on subresources. An update that keeps the class is only
checked again when an allow or deny class rule has conditions; conditional
audit rules are recorded without taking that decision again.
Legacy Tenant.spec.priorityClasses restrictions remain an additional boundary. | false | +| **[runtime](#rulestatusstatusruleenforceworkloadsclassesruntimeindex)** | []object | Runtime matches spec.runtimeClassName of selected Pods and Pod templates
by name, or by the labels of the RuntimeClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes has no default RuntimeClass, mutation has already run, and the
Pod keeps the default runtime of its node. A controller template is not
necessarily classless when its Pods run — a Tenant default or a mutation
rule can assign a class then — so an allow or deny rule that targets the
controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class,
and a missing class never matches it. Runtime rules apply to the pod
target and do not run on subresources. An update that keeps the class is
only checked again when an allow or deny class rule has conditions;
conditional audit rules are recorded without taking that decision again.
Legacy Tenant.spec.runtimeClasses restrictions remain an additional boundary. | false | + + +### RuleStatus.status.rule.enforce.workloads.classes.priority[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusruleenforceworkloadsclassespriorityindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rule.enforce.workloads.classes.priority[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.status.rule.enforce.workloads.classes.runtime[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusruleenforceworkloadsclassesruntimeindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rule.enforce.workloads.classes.runtime[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.status.rule.enforce.workloads.disruptionBudgets @@ -5452,9 +6188,11 @@ Mutated values remain subject to all applicable enforcement rules. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
*Enum*: merge, replace
*Default*: merge
| false | +| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName, an omitted priority, runtime or volume attributes class and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, classes.priority, classes.runtime, storage.attributeClass, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
DeviceClass defaults support merge only, preserving every explicit class name.
*Enum*: merge, replace
*Default*: merge
| false | | **[conditions](#rulestatusstatusrulemutateindexconditionsindex)** | []object | Conditions gate this entire mutation entry and inspect the object after
preceding mutations. All conditions must be true; empty means apply. | false | +| **[devices](#rulestatusstatusrulemutateindexdevices)** | object | Devices configures default DeviceClass references for DRA claims and templates. | false | | **[ingress](#rulestatusstatusrulemutateindexingress)** | object | Ingress configures Kubernetes ingress and Gateway API resource mutations. | false | +| **[storage](#rulestatusstatusrulemutateindexstorage)** | object | Storage configures defaults for PersistentVolumeClaims. | false | | **[workloads](#rulestatusstatusrulemutateindexworkloads)** | object | WorkloadMutation contains typed native Pod values. Empty maps/lists are
preserved so replace can clear a property; nil means the property is omitted.
It applies on Pod creation. Security.ReadOnlyRootFilesystem and
Registries.ImagePullPolicy also apply to newly added ephemeral containers on
subresource updates. Existing containers are never reconciled.
On merge, later entries override hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, matching map keys,
tolerations and spread constraints.
On merge, required affinity restrictions from applicable entries are ANDed. | false | @@ -5474,6 +6212,18 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### RuleStatus.status.rule.mutate[index].devices + + + +Devices configures default DeviceClass references for DRA claims and templates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **class** | string | Class fills an omitted, null, or empty deviceClassName in each existing
exactly request and firstAvailable alternative. Explicit names and request
structure are preserved. The first applicable default wins. Supports merge
only; replace is rejected to preserve scheduler-selected allocations.
Omitted or null supplies no default. Tenant and Namespace templates are
supported; rendered names must satisfy native DeviceClass name validation. | false | + + ### RuleStatus.status.rule.mutate[index].ingress @@ -5483,7 +6233,9 @@ Ingress configures Kubernetes ingress and Gateway API resource mutations. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **class** | string | Class sets the targeted Ingress or Gateway class on CREATE and UPDATE.
Merge fills an absent or empty class, preserving explicit field/annotation
values. Replace sets the class and keeps an existing ingress annotation in
sync. Rule changes do not reconcile existing objects. Templates are allowed;
rendered values must be valid DNS subdomains. Omitted leaves it unchanged. | false | | **[listenerSets](#rulestatusstatusrulemutateindexingresslistenersets)** | object | ListenerSets configures gateway.networking.k8s.io/v1 ListenerSets. | false | +| **types** | []enum | Types selects the kinds whose class is set. Required when class is supplied.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same class mutation for version compatibility.
ListenerSet parentRef mutation has its own explicit target and is unchanged.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | ### RuleStatus.status.rule.mutate[index].ingress.listenerSets @@ -5517,6 +6269,18 @@ Attachment remains subject to the parent's allowedListeners configuration. | **namespace** | string | Namespace identifies the parent's namespace. Omitted means the
ListenerSet's namespace; an explicit empty string is invalid. | false | +### RuleStatus.status.rule.mutate[index].storage + + + +Storage configures defaults for PersistentVolumeClaims. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **attributeClass** | string | AttributeClass sets spec.volumeAttributesClassName on PersistentVolumeClaim
creation, including the claims the StatefulSet and ephemeral volume
controllers create from templates under their own identity. Merge fills an
omitted or null class and keeps an empty one, which chooses no class, as
an empty storageClassName opts out of the default StorageClass. The first
applicable merge wins. Replace always sets the class. Updates never change
the class, since a new class modifies the volume. Capsule neither reads nor
creates the VolumeAttributesClass; Kubernetes keeps a claim whose class
doesn't exist pending until it does. Omitted or null leaves the claim
unchanged. Tenant and Namespace templates are supported; rendered names
must satisfy native VolumeAttributesClass name validation. | false | + + ### RuleStatus.status.rule.mutate[index].workloads @@ -5533,12 +6297,26 @@ On merge, required affinity restrictions from applicable entries are ANDed. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusrulemutateindexworkloadsclasses)** | object | Classes configures the classes referenced by the Pod. | false | | **[placement](#rulestatusstatusrulemutateindexworkloadsplacement)** | object | Placement configures the Pod scheduler and scheduling constraints. | false | | **[registries](#rulestatusstatusrulemutateindexworkloadsregistries)** | object | Registries configures Pod image pull secrets and selected containers' pull policies. | false | | **[security](#rulestatusstatusrulemutateindexworkloadssecurity)** | object | Security configures Pod and container security settings. | false | | **targets** | []enum | Targets selects compatible Pod locations. Omitted or empty selects all
compatible locations. The pod target includes Pod-level properties and all
container groups; pod/containers, pod/initcontainers and pod/ephemeralcontainers
narrow selection to one group. Controller templates and volumes are not supported.
*Enum*: pod, pod/containers, pod/initcontainers, pod/ephemeralcontainers
| false | +### RuleStatus.status.rule.mutate[index].workloads.classes + + + +Classes configures the classes referenced by the Pod. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **priority** | string | Priority sets spec.priorityClassName on Pod creation, together with the
priority and preemptionPolicy of that PriorityClass. Merge fills an omitted
class; the cluster's global default class, which Kubernetes assigns before
admission, counts as omitted. The first applicable merge wins. Replace
always sets the class. The PriorityClass must exist; Capsule does not create
it. Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native PriorityClass name
validation. Requires the pod target or omitted/empty targets. | false | +| **runtime** | string | Runtime sets spec.runtimeClassName on Pod creation. Merge fills an omitted
class and preserves every class a Pod names: Kubernetes has no default
RuntimeClass, so an omitted class is unset. The first applicable merge
wins. Replace always sets the class. When the entries change the class of
a Pod, Capsule applies the overhead and the scheduling constraints of the
assigned RuntimeClass, as the API server does for the class a Pod names:
the class must exist, and a scheduling nodeSelector that conflicts with
the Pod rejects it. The constraints of the final class are restored when
a replace of nodeSelector or tolerations removes them, also when the
class itself did not change. Constraints the Pod already carries for a
class an entry replaces are residual: they are retained but not restored,
while a class replaced within the entries leaves nothing behind. The
conditions of a later entry see the overhead and the constraints of the
class assigned before them. Capsule does not create the RuntimeClass.
Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native RuntimeClass name
validation. Requires the pod target or omitted/empty targets. | false | + + ### RuleStatus.status.rule.mutate[index].workloads.placement @@ -6291,52 +7069,146 @@ For future implementation where users might manage RuleStatus CRs themselves | **name** | string | | true | -### RuleStatus.status.rules[index].enforce +### RuleStatus.status.rules[index].enforce + + + +Enforcement for given rule + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **action** | enum | Declare the action being performed on the enforcement rule:
deny: On match, deny admission request
allow: On match, allowed admission request
audit: On match, audit (post event) of admission request
*Enum*: allow, deny, audit
*Default*: deny
| false | +| **[conditions](#rulestatusstatusrulesindexenforceconditionsindex)** | []object | Conditions gate this entire enforcement rule, including workloads, services,
metadata, ingress, network and storage. All conditions must be true; empty means apply.
Conditions run during admission; managed metadata in a conditional rule
is applied on matching requests only and is not reconciled in the background. | false | +| **[devices](#rulestatusstatusrulesindexenforcedevices)** | object | Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. | false | +| **[ingress](#rulestatusstatusrulesindexenforceingress)** | object | Enforcement for Ingress and Gateway API resource hostnames. | false | +| **[metadata](#rulestatusstatusrulesindexenforcemetadataindex)** | []object | Enforcement for object metadata on namespaced resources. | false | +| **[network](#rulestatusstatusrulesindexenforcenetwork)** | object | Network configures network enforcement for namespace resources. | false | +| **[services](#rulestatusstatusrulesindexenforceservices)** | object | Enforcement for Services. | false | +| **[storage](#rulestatusstatusrulesindexenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label,
and the classes storage objects may reference. | false | +| **[workloads](#rulestatusstatusrulesindexenforceworkloads)** | object | Enforcement for native workload kinds and Pod properties. | false | + + +### RuleStatus.status.rules[index].enforce.conditions[index] + + + +AdmissionCondition is a Boolean CEL gate for a mutation entry or enforcement rule. It can +inspect object and request metadata, but cannot generate mutation values. +During PVC volume access evaluation, volume contains the referenced PV; +otherwise volume is null. Conditions never modify the PVC or PV. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **expression** | string | Expression must evaluate to bool. Any false condition skips this block.
An evaluation error rejects the request unless another condition is false. | true | +| **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | + + +### RuleStatus.status.rules[index].enforce.devices + + + +Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusrulesindexenforcedevicesclassesindex)** | []object | Classes matches DeviceClasses by name or existing class labels. Entries are
ORed; each requested class is evaluated independently in rule order.
An applicable allow list rejects unmatched classes. Audit never grants access.
Legacy Tenant.spec.deviceClasses restrictions remain an additional boundary. | false | + + +### RuleStatus.status.rules[index].enforce.devices.classes[index] + + + +DeviceClassMatch ORs exact names, a name expression, and a label selector. +At least one criterion is required by rule admission validation. As with +placement expressions, this is checked outside CEL to bound schema cost. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of these class names. | false | +| **exp** | string | Exp matches regular expression. | false | +| **negate** | boolean | Negate inverts the match result. Omitted means false. | false | +| **[selector](#rulestatusstatusrulesindexenforcedevicesclassesindexselector)** | object | Selector matches labels on the DeviceClass, not the claim or namespace.
Omitted means no label criterion; explicit {} matches every existing class.
References must resolve when selectors participate in allow/deny enforcement. | false | + + +### RuleStatus.status.rules[index].enforce.devices.classes[index].selector + + + +Selector matches labels on the DeviceClass, not the claim or namespace. +Omitted means no label criterion; explicit {} matches every existing class. +References must resolve when selectors participate in allow/deny enforcement. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#rulestatusstatusrulesindexenforcedevicesclassesindexselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rules[index].enforce.devices.classes[index].selector.matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.status.rules[index].enforce.ingress -Enforcement for given rule +Enforcement for Ingress and Gateway API resource hostnames. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **action** | enum | Declare the action being performed on the enforcement rule:
deny: On match, deny admission request
allow: On match, allowed admission request
audit: On match, audit (post event) of admission request
*Enum*: allow, deny, audit
*Default*: deny
| false | -| **[conditions](#rulestatusstatusrulesindexenforceconditionsindex)** | []object | Conditions gate this entire enforcement rule, including workloads, services,
metadata, ingress, network and storage. All conditions must be true; empty means apply.
Conditions run during admission; managed metadata in a conditional rule
is applied on matching requests only and is not reconciled in the background. | false | -| **[ingress](#rulestatusstatusrulesindexenforceingress)** | object | Enforcement for Ingress and Gateway API resource hostnames. | false | -| **[metadata](#rulestatusstatusrulesindexenforcemetadataindex)** | []object | Enforcement for object metadata on namespaced resources. | false | -| **[network](#rulestatusstatusrulesindexenforcenetwork)** | object | Network configures network enforcement for namespace resources. | false | -| **[services](#rulestatusstatusrulesindexenforceservices)** | object | Enforcement for Services. | false | -| **[storage](#rulestatusstatusrulesindexenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label. | false | -| **[workloads](#rulestatusstatusrulesindexenforceworkloads)** | object | Enforcement for native workload kinds and Pod properties. | false | +| **[classes](#rulestatusstatusrulesindexenforceingressclassesindex)** | []object | Classes matches IngressClass or GatewayClass names and labels. Entries,
and the criteria within each entry, are ORed. Label selectors read the
referenced class, not the ingress or namespace. Exact and exp need no read.
Classless objects are rejected by applicable allow/deny class rules.
Legacy Tenant class restrictions remain an additional boundary. | false | +| **[hostnames](#rulestatusstatusrulesindexenforceingresshostnamesindex)** | []object | Hostnames defines allowed, denied, or audited hostname expressions.
A resource targeted by an allow or deny rule must declare non-empty values
in all hostname fields. Audit-only rules record missing hostnames without
denying them. | false | +| **types** | []enum | Types defines the resource kinds to which enforcement applies. Classes
apply to Ingress and Gateway; hostnames apply to every supported type.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same rules to prevent bypass through another version.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | -### RuleStatus.status.rules[index].enforce.conditions[index] +### RuleStatus.status.rules[index].enforce.ingress.classes[index] -AdmissionCondition is a Boolean CEL gate for a mutation entry or enforcement rule. It can -inspect object and request metadata, but cannot generate mutation values. -During PVC volume access evaluation, volume contains the referenced PV; -otherwise volume is null. Conditions never modify the PVC or PV. +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **expression** | string | Expression must evaluate to bool. Any false condition skips this block.
An evaluation error rejects the request unless another condition is false. | true | -| **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusrulesindexenforceingressclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | -### RuleStatus.status.rules[index].enforce.ingress +### RuleStatus.status.rules[index].enforce.ingress.classes[index].matchExpressions[index] -Enforcement for Ingress and Gateway API resource hostnames. +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **[hostnames](#rulestatusstatusrulesindexenforceingresshostnamesindex)** | []object | Hostnames defines allowed, denied, or audited hostname expressions.
A resource targeted by an allow or deny rule must declare non-empty values
in all hostname fields. Audit-only rules record missing hostnames without
denying them. | false | -| **types** | []enum | Types defines the resource kinds to which hostname enforcement applies.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | ### RuleStatus.status.rules[index].enforce.ingress.hostnames[index] @@ -6576,14 +7448,84 @@ NodePorts defines additional constraints for nodePort values. -Additional access to PersistentVolumes without a tenant ownership label. +Additional access to PersistentVolumes without a tenant ownership label, +and the classes storage objects may reference. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[attributeClasses](#rulestatusstatusrulesindexenforcestorageattributeclassesindex)** | []object | AttributeClasses matches PersistentVolumeClaim
spec.volumeAttributesClassName. Entries are ORed. Targets don't apply. A
claim without a class is not matched, since Kubernetes then applies none.
Updates are only matched when they change the class to one other than
status.currentVolumeAttributesClassName: restoring the applied class
cancels a modification. | false | +| **[classes](#rulestatusstatusrulesindexenforcestorageclassesindex)** | []object | Classes matches the class referenced by each targeted object. Entries are
ORed. An allow or deny rule requires the targeted object to name a class
whenever the class would otherwise be defaulted after admission. Without
targets, classes apply to every supported kind. | false | +| **targets** | []enum | Targets selects the kinds whose class reference is matched against classes.
volumesnapshot matches VolumeSnapshot spec.volumeSnapshotClassName.
Omitted targets select every supported kind. Requires classes.
*Enum*: volumesnapshot
| false | | **[volumes](#rulestatusstatusrulesindexenforcestoragevolumesindex)** | []object | Volumes matches additional PersistentVolumes. Entries are ORed. Conditions
on the enclosing enforcement rule must also match. The last matching
allow/deny decides the exception; audit never grants access. | false | +### RuleStatus.status.rules[index].enforce.storage.attributeClasses[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusrulesindexenforcestorageattributeclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rules[index].enforce.storage.attributeClasses[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.status.rules[index].enforce.storage.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusrulesindexenforcestorageclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rules[index].enforce.storage.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.status.rules[index].enforce.storage.volumes[index] @@ -6636,6 +7578,7 @@ Enforcement for native workload kinds and Pod properties. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusrulesindexenforceworkloadsclasses)** | object | Classes matches the classes referenced by Pods. | false | | **[disruptionBudgets](#rulestatusstatusrulesindexenforceworkloadsdisruptionbudgets)** | object | DisruptionBudgets constrains PDB coverage of selected Pods and controller templates.
Only whole-workload targets apply; omitted targets select Pods. | false | | **[placement](#rulestatusstatusrulesindexenforceworkloadsplacement)** | object | Placement matches the Pod scheduler and scheduling constraints. | false | | **qosClasses** | []string | Define Pod QoS classes matched by this enforcement rule.
Supported values are Guaranteed, Burstable and BestEffort. | false | @@ -6646,6 +7589,85 @@ Enforcement for native workload kinds and Pod properties. | **targets** | []string | Targets selects native workloads and, optionally, parts of their Pod specs.
With no workload policies, the action matches the selected kinds themselves.
With policies, targets scopes those policies; it does not also match the kind.
Omitted targets preserve Pod-only defaults. Controller targets are opt-in.
Whole-controller targets include every compatible location in the Pod template.
Existing pod and pod/* part targets retain their established policy scope. | false | +### RuleStatus.status.rules[index].enforce.workloads.classes + + + +Classes matches the classes referenced by Pods. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[priority](#rulestatusstatusrulesindexenforceworkloadsclassespriorityindex)** | []object | Priority matches spec.priorityClassName of selected Pods and Pod templates
by name, or by the labels of the PriorityClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes assigns the cluster's global default class before admission, so
that name is matched like an explicit one. A controller template gets its
class only when its Pods are created, so an allow or deny rule that targets
the controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class, and
a missing class never matches it. Priority rules apply to the pod target
and do not run on subresources. An update that keeps the class is only
checked again when an allow or deny class rule has conditions; conditional
audit rules are recorded without taking that decision again.
Legacy Tenant.spec.priorityClasses restrictions remain an additional boundary. | false | +| **[runtime](#rulestatusstatusrulesindexenforceworkloadsclassesruntimeindex)** | []object | Runtime matches spec.runtimeClassName of selected Pods and Pod templates
by name, or by the labels of the RuntimeClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes has no default RuntimeClass, mutation has already run, and the
Pod keeps the default runtime of its node. A controller template is not
necessarily classless when its Pods run — a Tenant default or a mutation
rule can assign a class then — so an allow or deny rule that targets the
controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class,
and a missing class never matches it. Runtime rules apply to the pod
target and do not run on subresources. An update that keeps the class is
only checked again when an allow or deny class rule has conditions;
conditional audit rules are recorded without taking that decision again.
Legacy Tenant.spec.runtimeClasses restrictions remain an additional boundary. | false | + + +### RuleStatus.status.rules[index].enforce.workloads.classes.priority[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusrulesindexenforceworkloadsclassespriorityindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rules[index].enforce.workloads.classes.priority[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### RuleStatus.status.rules[index].enforce.workloads.classes.runtime[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#rulestatusstatusrulesindexenforceworkloadsclassesruntimeindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### RuleStatus.status.rules[index].enforce.workloads.classes.runtime[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### RuleStatus.status.rules[index].enforce.workloads.disruptionBudgets @@ -7406,9 +8428,11 @@ Mutated values remain subject to all applicable enforcement rules. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
*Enum*: merge, replace
*Default*: merge
| false | +| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName, an omitted priority, runtime or volume attributes class and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, classes.priority, classes.runtime, storage.attributeClass, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
DeviceClass defaults support merge only, preserving every explicit class name.
*Enum*: merge, replace
*Default*: merge
| false | | **[conditions](#rulestatusstatusrulesindexmutateindexconditionsindex)** | []object | Conditions gate this entire mutation entry and inspect the object after
preceding mutations. All conditions must be true; empty means apply. | false | +| **[devices](#rulestatusstatusrulesindexmutateindexdevices)** | object | Devices configures default DeviceClass references for DRA claims and templates. | false | | **[ingress](#rulestatusstatusrulesindexmutateindexingress)** | object | Ingress configures Kubernetes ingress and Gateway API resource mutations. | false | +| **[storage](#rulestatusstatusrulesindexmutateindexstorage)** | object | Storage configures defaults for PersistentVolumeClaims. | false | | **[workloads](#rulestatusstatusrulesindexmutateindexworkloads)** | object | WorkloadMutation contains typed native Pod values. Empty maps/lists are
preserved so replace can clear a property; nil means the property is omitted.
It applies on Pod creation. Security.ReadOnlyRootFilesystem and
Registries.ImagePullPolicy also apply to newly added ephemeral containers on
subresource updates. Existing containers are never reconciled.
On merge, later entries override hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, matching map keys,
tolerations and spread constraints.
On merge, required affinity restrictions from applicable entries are ANDed. | false | @@ -7428,6 +8452,18 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### RuleStatus.status.rules[index].mutate[index].devices + + + +Devices configures default DeviceClass references for DRA claims and templates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **class** | string | Class fills an omitted, null, or empty deviceClassName in each existing
exactly request and firstAvailable alternative. Explicit names and request
structure are preserved. The first applicable default wins. Supports merge
only; replace is rejected to preserve scheduler-selected allocations.
Omitted or null supplies no default. Tenant and Namespace templates are
supported; rendered names must satisfy native DeviceClass name validation. | false | + + ### RuleStatus.status.rules[index].mutate[index].ingress @@ -7437,7 +8473,9 @@ Ingress configures Kubernetes ingress and Gateway API resource mutations. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **class** | string | Class sets the targeted Ingress or Gateway class on CREATE and UPDATE.
Merge fills an absent or empty class, preserving explicit field/annotation
values. Replace sets the class and keeps an existing ingress annotation in
sync. Rule changes do not reconcile existing objects. Templates are allowed;
rendered values must be valid DNS subdomains. Omitted leaves it unchanged. | false | | **[listenerSets](#rulestatusstatusrulesindexmutateindexingresslistenersets)** | object | ListenerSets configures gateway.networking.k8s.io/v1 ListenerSets. | false | +| **types** | []enum | Types selects the kinds whose class is set. Required when class is supplied.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same class mutation for version compatibility.
ListenerSet parentRef mutation has its own explicit target and is unchanged.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | ### RuleStatus.status.rules[index].mutate[index].ingress.listenerSets @@ -7471,6 +8509,18 @@ Attachment remains subject to the parent's allowedListeners configuration. | **namespace** | string | Namespace identifies the parent's namespace. Omitted means the
ListenerSet's namespace; an explicit empty string is invalid. | false | +### RuleStatus.status.rules[index].mutate[index].storage + + + +Storage configures defaults for PersistentVolumeClaims. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **attributeClass** | string | AttributeClass sets spec.volumeAttributesClassName on PersistentVolumeClaim
creation, including the claims the StatefulSet and ephemeral volume
controllers create from templates under their own identity. Merge fills an
omitted or null class and keeps an empty one, which chooses no class, as
an empty storageClassName opts out of the default StorageClass. The first
applicable merge wins. Replace always sets the class. Updates never change
the class, since a new class modifies the volume. Capsule neither reads nor
creates the VolumeAttributesClass; Kubernetes keeps a claim whose class
doesn't exist pending until it does. Omitted or null leaves the claim
unchanged. Tenant and Namespace templates are supported; rendered names
must satisfy native VolumeAttributesClass name validation. | false | + + ### RuleStatus.status.rules[index].mutate[index].workloads @@ -7487,12 +8537,26 @@ On merge, required affinity restrictions from applicable entries are ANDed. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#rulestatusstatusrulesindexmutateindexworkloadsclasses)** | object | Classes configures the classes referenced by the Pod. | false | | **[placement](#rulestatusstatusrulesindexmutateindexworkloadsplacement)** | object | Placement configures the Pod scheduler and scheduling constraints. | false | | **[registries](#rulestatusstatusrulesindexmutateindexworkloadsregistries)** | object | Registries configures Pod image pull secrets and selected containers' pull policies. | false | | **[security](#rulestatusstatusrulesindexmutateindexworkloadssecurity)** | object | Security configures Pod and container security settings. | false | | **targets** | []enum | Targets selects compatible Pod locations. Omitted or empty selects all
compatible locations. The pod target includes Pod-level properties and all
container groups; pod/containers, pod/initcontainers and pod/ephemeralcontainers
narrow selection to one group. Controller templates and volumes are not supported.
*Enum*: pod, pod/containers, pod/initcontainers, pod/ephemeralcontainers
| false | +### RuleStatus.status.rules[index].mutate[index].workloads.classes + + + +Classes configures the classes referenced by the Pod. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **priority** | string | Priority sets spec.priorityClassName on Pod creation, together with the
priority and preemptionPolicy of that PriorityClass. Merge fills an omitted
class; the cluster's global default class, which Kubernetes assigns before
admission, counts as omitted. The first applicable merge wins. Replace
always sets the class. The PriorityClass must exist; Capsule does not create
it. Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native PriorityClass name
validation. Requires the pod target or omitted/empty targets. | false | +| **runtime** | string | Runtime sets spec.runtimeClassName on Pod creation. Merge fills an omitted
class and preserves every class a Pod names: Kubernetes has no default
RuntimeClass, so an omitted class is unset. The first applicable merge
wins. Replace always sets the class. When the entries change the class of
a Pod, Capsule applies the overhead and the scheduling constraints of the
assigned RuntimeClass, as the API server does for the class a Pod names:
the class must exist, and a scheduling nodeSelector that conflicts with
the Pod rejects it. The constraints of the final class are restored when
a replace of nodeSelector or tolerations removes them, also when the
class itself did not change. Constraints the Pod already carries for a
class an entry replaces are residual: they are retained but not restored,
while a class replaced within the entries leaves nothing behind. The
conditions of a later entry see the overhead and the constraints of the
class assigned before them. Capsule does not create the RuntimeClass.
Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native RuntimeClass name
validation. Requires the pod target or omitted/empty targets. | false | + + ### RuleStatus.status.rules[index].mutate[index].workloads.placement @@ -8315,8 +9379,11 @@ TenantResourceSpec defines the desired state of TenantResource. | **[settings](#tenantresourcespecsettings)** | object | Deprecated: configure resources[].policy instead. Admission converts Settings
into policies for blocks without one. Retained as a compatibility fallback
for stored resources that have not passed through admission again.

*Default*: map[]
| true | | **cordoned** | boolean | When cordoning a replication it will no longer execute any applies or deletions (paused).
This is useful for maintenances
*Default*: false
| false | | **[dependsOn](#tenantresourcespecdependsonindex)** | []object | DependsOn may contain a meta.NamespacedObjectReference slice
with references to TenantResource resources that must be ready before this
TenantResource can be reconciled. | false | +| **[healthChecks](#tenantresourcespechealthchecks)** | object | HealthChecks optionally requires applied targets to become healthy before Ready.
Omitted health checks preserve apply-only readiness and perform no health reads. | false | | **pruningOnDelete** | boolean | When the replicated resource manifest is deleted, all the objects replicated so far will be automatically deleted.
Disable this to keep replicated resources although the deletion of the replication manifest.

Deprecated: use resources[].policy.deletion instead. Retained for blocks without a policy.

*Default*: true
| false | | **[serviceAccount](#tenantresourcespecserviceaccount)** | object | Local ServiceAccount which will perform all the actions defined in the TenantResource
You must provide permissions accordingly to that ServiceAccount | false | +| **triggerMinInterval** | string | TriggerMinInterval bounds triggered reconciliation frequency across all triggers
on this resource. Events within the interval coalesce into one pending reconcile.
Spec changes, deletion, manual requests, and periodic resyncs retain their behavior.
*Default*: 10s
| false | +| **[triggers](#tenantresourcespectriggersindex)** | []object | Triggers request reconciliation on observed namespaced resource changes.
Capsule-managed resources never trigger reconciliation. Delivery is best effort;
bounded watch memory may skip large objects or updates without a retained old state.
resyncPeriod remains the recovery mechanism for missed events. | false | ### TenantResource.spec.resources[index] @@ -8516,44 +9583,180 @@ When omitted, admission converts legacy settings and pruningOnDelete into a poli | **protect** | boolean | Protect prevents users from changing or deleting the target through
admission while it is managed. Protection is enabled by default.
*Default*: true
| false | -### TenantResource.spec.settings +### TenantResource.spec.settings + + + +Deprecated: configure resources[].policy instead. Admission converts Settings +into policies for blocks without one. Retained as a compatibility fallback +for stored resources that have not passed through admission again. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **adopt** | boolean | Enabling this allows TenanResources to interact with objects which were not created by a TenantResource. In this case on prune no deletion of the entire object is made.

Deprecated: use resources[].policy.creation: Merge instead.

*Default*: false
| false | +| **force** | boolean | Force indicates that in case of conflicts with server-side apply, the client should acquire ownership of the conflicting field.
You may create collisions with this.

Deprecated: use resources[].policy.force instead.

*Default*: false
| false | + + +### TenantResource.spec.dependsOn[index] + + + +LocalObjectReference contains enough information to locate the referenced Kubernetes resource object. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **name** | string | Name of the referent. | true | + + +### TenantResource.spec.healthChecks + + + +HealthChecks optionally requires applied targets to become healthy before Ready. +Omitted health checks preserve apply-only readiness and perform no health reads. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[expressions](#tenantresourcespechealthchecksexpressionsindex)** | []object | Expressions override kstatus for the specified API groups and kinds.
Expressions receive object and its top-level fields (metadata, spec, status).
Evaluated in order: inProgress, failed, current. Requires wait: true. | false | +| **timeout** | string | Timeout bounds an incomplete rollout across retries and leader changes.
Defaults to five minutes. A completed rollout can start a new assessment. | false | +| **wait** | boolean | Wait requires successfully applied targets to pass health checks before Ready.
Omitted or false preserves apply-only readiness and performs no health reads. | false | + + +### TenantResource.spec.healthChecks.expressions[index] + + + + + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **apiVersion** | string | APIVersion identifies the API group; the served version is ignored when matching. | true | +| **current** | string | Current returns true when the target is healthy. | true | +| **kind** | string | Kind identifies the kind whose status is evaluated. | true | +| **failed** | string | Failed returns true on a failed rollout. | false | +| **inProgress** | string | InProgress returns true while reconciliation is ongoing. | false | + + +### TenantResource.spec.serviceAccount + + + +Local ServiceAccount which will perform all the actions defined in the TenantResource +You must provide permissions accordingly to that ServiceAccount + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **name** | string | Name of the referent. | true | + + +### TenantResource.spec.triggers[index] + + + +TenantResourceTrigger requests best-effort reconciliation on observed resource changes. +Resource behavior and replication destinations remain defined by resources. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **name** | string | Name uniquely identifies this trigger. | true | +| **apiGroups** | []string | APIGroups selects explicit API groups. Use "" for the core API group.
Wildcards are unsupported. | false | +| **apiVersions** | []string | APIVersions selects explicit API versions, such as "v1". Wildcards are unsupported. | false | +| **[audience](#tenantresourcespectriggersindexaudienceindex)** | []object | Deprecated: watches do not carry request identities. Audience must be empty. | false | +| **[matchConditions](#tenantresourcespectriggersindexmatchconditionsindex)** | []object | MatchConditions are CEL conditions over object, oldObject and operation. All must match. | false | +| **[namespaceSelector](#tenantresourcespectriggersindexnamespaceselector)** | object | NamespaceSelector selects event source namespaces for GlobalTenantResources.
TenantResources always observe only their own namespace and cannot set this field. | false | +| **[objectSelector](#tenantresourcespectriggersindexobjectselector)** | object | ObjectSelector matches the labels of either the old or new observed object. | false | +| **operations** | []string | Operations selects observed CREATE, UPDATE, and DELETE events.
A single "*" selects all three. CONNECT is unsupported by watches. | false | +| **resources** | []string | Resources selects explicit plural top-level resource names, such as "configmaps".
Wildcards are unsupported. Subresources, such as "pods/log", are unsupported. | false | +| **scope** | string | Scope may be omitted or set to "Namespaced". Watches only observe namespaced resources. | false | + + +### TenantResource.spec.triggers[index].audience[index] + + + + + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **kind** | enum |
*Enum*: User, Group, ServiceAccount, Custom
| true | +| **name** | string | | true | + + +### TenantResource.spec.triggers[index].matchConditions[index] + + + +TenantResourceTriggerCondition filters an observed resource change using CEL. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **expression** | string | Expression must evaluate to bool using only the observed event variables:
object is the new persisted object (null for DELETE), oldObject is the previous
persisted object (null for CREATE), and operation is "CREATE", "UPDATE", or "DELETE".
Admission request and authorizer variables are unavailable. For example:
operation != 'UPDATE' || object.data != oldObject.data | true | +| **name** | string | Name uniquely identifies this condition within a trigger. It must be a Kubernetes
qualified name, optionally prefixed with a DNS subdomain and '/'. | true | + + +### TenantResource.spec.triggers[index].namespaceSelector + + + +NamespaceSelector selects event source namespaces for GlobalTenantResources. +TenantResources always observe only their own namespace and cannot set this field. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#tenantresourcespectriggersindexnamespaceselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | +### TenantResource.spec.triggers[index].namespaceSelector.matchExpressions[index] + -Deprecated: configure resources[].policy instead. Admission converts Settings -into policies for blocks without one. Retained as a compatibility fallback -for stored resources that have not passed through admission again. + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **adopt** | boolean | Enabling this allows TenanResources to interact with objects which were not created by a TenantResource. In this case on prune no deletion of the entire object is made.

Deprecated: use resources[].policy.creation: Merge instead.

*Default*: false
| false | -| **force** | boolean | Force indicates that in case of conflicts with server-side apply, the client should acquire ownership of the conflicting field.
You may create collisions with this.

Deprecated: use resources[].policy.force instead.

*Default*: false
| false | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | -### TenantResource.spec.dependsOn[index] +### TenantResource.spec.triggers[index].objectSelector -LocalObjectReference contains enough information to locate the referenced Kubernetes resource object. +ObjectSelector matches the labels of either the old or new observed object. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **name** | string | Name of the referent. | true | +| **[matchExpressions](#tenantresourcespectriggersindexobjectselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | -### TenantResource.spec.serviceAccount +### TenantResource.spec.triggers[index].objectSelector.matchExpressions[index] -Local ServiceAccount which will perform all the actions defined in the TenantResource -You must provide permissions accordingly to that ServiceAccount +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **name** | string | Name of the referent. | true | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | ### TenantResource.status @@ -8567,9 +9770,12 @@ TenantResourceStatus defines the observed state of TenantResource. | :---- | :---- | :----------- | :-------- | | **size** | integer | Number of managed resources. | true | | **[conditions](#tenantresourcestatusconditionsindex)** | []object | Condition of the GlobalTenantResource. | false | +| **[health](#tenantresourcestatushealth)** | object | Health records the durable rollout deadline and bounded health-check progress. | false | +| **nextResyncAt** | string | NextResyncAt is the next periodic resync deadline for trigger-enabled replications.
*Format*: date-time
| false | | **observedGeneration** | integer | ObservedGeneration is the most recent generation the controller has observed.
*Format*: int64
| false | | **[processedItems](#tenantresourcestatusprocesseditemsindex)** | []object | List of resources managed by the API object. | false | | **[serviceAccount](#tenantresourcestatusserviceaccount)** | object | Serviceaccount used for impersonation | false | +| **[trigger](#tenantresourcestatustrigger)** | object | Trigger records the last watch notification handled by this controller. | false | ### TenantResource.status.conditions[index] @@ -8589,6 +9795,28 @@ Condition contains details for one aspect of the current state of this API Resou | **observedGeneration** | integer | observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
*Format*: int64
*Minimum*: 0
| false | +### TenantResource.status.health + + + +Health records the durable rollout deadline and bounded health-check progress. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **deadline** | string |
*Format*: date-time
| true | +| **observedGeneration** | integer |
*Format*: int64
| true | +| **requestedAt** | string |
*Format*: date-time
| true | +| **revision** | string | | true | +| **startedAt** | string |
*Format*: date-time
| true | +| **applying** | boolean | Applying prevents observations from completing while a full apply is in flight. | false | +| **cursor** | integer |
*Format*: int32
*Minimum*: 0
| false | +| **failed** | boolean | | false | +| **message** | string | | false | +| **nextCheckAt** | string |
*Format*: date-time
| false | +| **pending** | boolean | | false | + + ### TenantResource.status.processedItems[index] @@ -8621,11 +9849,26 @@ Advanced Status Item for pin pointing items in tenants/namespaces. | **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 | | **created** | boolean | Indicates wether the resource was created or adopted | false | +| **[health](#tenantresourcestatusprocesseditemsindexstatushealth)** | object | Health pins an opt-in health check to the successfully applied object. | false | | **lastApply** | string | An opaque value that represents the internal version of this object that can
be used by clients to determine when objects have changed. May be used for optimistic
concurrency, change detection, and the watch operation on a resource or set of resources.
Clients must treat these values as opaque and passed unmodified back to the server.
They may only be valid for a particular resource or set of resources.

Populated by the system.
Read-only.
Value must be treated as opaque by clients and .
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
*Format*: date-time
| false | | **message** | string | message is a human readable message indicating details about the transition.
This may be an empty string. | false | | **[policy](#tenantresourcestatusprocesseditemsindexstatuspolicy)** | object | Policy is a lifecycle snapshot for protection and cleanup. Conditions are
evaluated from the source block and omitted here. Failed updates retain the
previous snapshot; a first successful content write records its policy even
if metadata reconciliation fails, so cleanup respects explicit retention.
An absent policy on an already applied item preserves legacy behavior. | false | +### TenantResource.status.processedItems[index].status.health + + + +Health pins an opt-in health check to the successfully applied object. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **digest** | string | Digest identifies an opaque content-write revision, including objects without generations.
It is not a checksum of rendered manifests or Secret values. | true | +| **generation** | integer |
*Format*: int64
| true | +| **uid** | string | UID is a type that holds unique ID values, including UUIDs. Because we
don't ONLY use UUIDs, this is an alias to string. Being a type captures
intent and helps make sure that UIDs and names do not get conflated. | true | + + ### TenantResource.status.processedItems[index].status.policy @@ -8657,6 +9900,19 @@ Serviceaccount used for impersonation | **name** | string | Name of the referent. | true | | **namespace** | string | Namespace of the referent. | true | + +### TenantResource.status.trigger + + + +Trigger records the last watch notification handled by this controller. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **lastTriggeredAt** | string | LastTriggeredAt is the start of the last triggered reconcile, including failed attempts.
*Format*: date-time
| true | +| **observedRequest** | string | ObservedRequest identifies the notification included in the last triggered reconcile. | true | + ## Tenant @@ -9598,11 +10854,12 @@ Enforcement for given rule | :---- | :---- | :----------- | :-------- | | **action** | enum | Declare the action being performed on the enforcement rule:
deny: On match, deny admission request
allow: On match, allowed admission request
audit: On match, audit (post event) of admission request
*Enum*: allow, deny, audit
*Default*: deny
| false | | **[conditions](#tenantspecrulesindexenforceconditionsindex)** | []object | Conditions gate this entire enforcement rule, including workloads, services,
metadata, ingress, network and storage. All conditions must be true; empty means apply.
Conditions run during admission; managed metadata in a conditional rule
is applied on matching requests only and is not reconciled in the background. | false | +| **[devices](#tenantspecrulesindexenforcedevices)** | object | Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. | false | | **[ingress](#tenantspecrulesindexenforceingress)** | object | Enforcement for Ingress and Gateway API resource hostnames. | false | | **[metadata](#tenantspecrulesindexenforcemetadataindex)** | []object | Enforcement for object metadata on namespaced resources. | false | | **[network](#tenantspecrulesindexenforcenetwork)** | object | Network configures network enforcement for namespace resources. | false | | **[services](#tenantspecrulesindexenforceservices)** | object | Enforcement for Services. | false | -| **[storage](#tenantspecrulesindexenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label. | false | +| **[storage](#tenantspecrulesindexenforcestorage)** | object | Additional access to PersistentVolumes without a tenant ownership label,
and the classes storage objects may reference. | false | | **[workloads](#tenantspecrulesindexenforceworkloads)** | object | Enforcement for native workload kinds and Pod properties. | false | @@ -9622,6 +10879,65 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### Tenant.spec.rules[index].enforce.devices + + + +Devices restricts DeviceClass references in ResourceClaims and ResourceClaimTemplates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[classes](#tenantspecrulesindexenforcedevicesclassesindex)** | []object | Classes matches DeviceClasses by name or existing class labels. Entries are
ORed; each requested class is evaluated independently in rule order.
An applicable allow list rejects unmatched classes. Audit never grants access.
Legacy Tenant.spec.deviceClasses restrictions remain an additional boundary. | false | + + +### Tenant.spec.rules[index].enforce.devices.classes[index] + + + +DeviceClassMatch ORs exact names, a name expression, and a label selector. +At least one criterion is required by rule admission validation. As with +placement expressions, this is checked outside CEL to bound schema cost. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of these class names. | false | +| **exp** | string | Exp matches regular expression. | false | +| **negate** | boolean | Negate inverts the match result. Omitted means false. | false | +| **[selector](#tenantspecrulesindexenforcedevicesclassesindexselector)** | object | Selector matches labels on the DeviceClass, not the claim or namespace.
Omitted means no label criterion; explicit {} matches every existing class.
References must resolve when selectors participate in allow/deny enforcement. | false | + + +### Tenant.spec.rules[index].enforce.devices.classes[index].selector + + + +Selector matches labels on the DeviceClass, not the claim or namespace. +Omitted means no label criterion; explicit {} matches every existing class. +References must resolve when selectors participate in allow/deny enforcement. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[matchExpressions](#tenantspecrulesindexenforcedevicesclassesindexselectormatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### Tenant.spec.rules[index].enforce.devices.classes[index].selector.matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### Tenant.spec.rules[index].enforce.ingress @@ -9631,8 +10947,42 @@ Enforcement for Ingress and Gateway API resource hostnames. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#tenantspecrulesindexenforceingressclassesindex)** | []object | Classes matches IngressClass or GatewayClass names and labels. Entries,
and the criteria within each entry, are ORed. Label selectors read the
referenced class, not the ingress or namespace. Exact and exp need no read.
Classless objects are rejected by applicable allow/deny class rules.
Legacy Tenant class restrictions remain an additional boundary. | false | | **[hostnames](#tenantspecrulesindexenforceingresshostnamesindex)** | []object | Hostnames defines allowed, denied, or audited hostname expressions.
A resource targeted by an allow or deny rule must declare non-empty values
in all hostname fields. Audit-only rules record missing hostnames without
denying them. | false | -| **types** | []enum | Types defines the resource kinds to which hostname enforcement applies.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | +| **types** | []enum | Types defines the resource kinds to which enforcement applies. Classes
apply to Ingress and Gateway; hostnames apply to every supported type.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same rules to prevent bypass through another version.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | + + +### Tenant.spec.rules[index].enforce.ingress.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#tenantspecrulesindexenforceingressclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### Tenant.spec.rules[index].enforce.ingress.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | ### Tenant.spec.rules[index].enforce.ingress.hostnames[index] @@ -9872,14 +11222,84 @@ NodePorts defines additional constraints for nodePort values. -Additional access to PersistentVolumes without a tenant ownership label. +Additional access to PersistentVolumes without a tenant ownership label, +and the classes storage objects may reference. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[attributeClasses](#tenantspecrulesindexenforcestorageattributeclassesindex)** | []object | AttributeClasses matches PersistentVolumeClaim
spec.volumeAttributesClassName. Entries are ORed. Targets don't apply. A
claim without a class is not matched, since Kubernetes then applies none.
Updates are only matched when they change the class to one other than
status.currentVolumeAttributesClassName: restoring the applied class
cancels a modification. | false | +| **[classes](#tenantspecrulesindexenforcestorageclassesindex)** | []object | Classes matches the class referenced by each targeted object. Entries are
ORed. An allow or deny rule requires the targeted object to name a class
whenever the class would otherwise be defaulted after admission. Without
targets, classes apply to every supported kind. | false | +| **targets** | []enum | Targets selects the kinds whose class reference is matched against classes.
volumesnapshot matches VolumeSnapshot spec.volumeSnapshotClassName.
Omitted targets select every supported kind. Requires classes.
*Enum*: volumesnapshot
| false | | **[volumes](#tenantspecrulesindexenforcestoragevolumesindex)** | []object | Volumes matches additional PersistentVolumes. Entries are ORed. Conditions
on the enclosing enforcement rule must also match. The last matching
allow/deny decides the exception; audit never grants access. | false | +### Tenant.spec.rules[index].enforce.storage.attributeClasses[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#tenantspecrulesindexenforcestorageattributeclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### Tenant.spec.rules[index].enforce.storage.attributeClasses[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### Tenant.spec.rules[index].enforce.storage.classes[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#tenantspecrulesindexenforcestorageclassesindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### Tenant.spec.rules[index].enforce.storage.classes[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### Tenant.spec.rules[index].enforce.storage.volumes[index] @@ -9932,6 +11352,7 @@ Enforcement for native workload kinds and Pod properties. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#tenantspecrulesindexenforceworkloadsclasses)** | object | Classes matches the classes referenced by Pods. | false | | **[disruptionBudgets](#tenantspecrulesindexenforceworkloadsdisruptionbudgets)** | object | DisruptionBudgets constrains PDB coverage of selected Pods and controller templates.
Only whole-workload targets apply; omitted targets select Pods. | false | | **[placement](#tenantspecrulesindexenforceworkloadsplacement)** | object | Placement matches the Pod scheduler and scheduling constraints. | false | | **qosClasses** | []string | Define Pod QoS classes matched by this enforcement rule.
Supported values are Guaranteed, Burstable and BestEffort. | false | @@ -9942,6 +11363,85 @@ Enforcement for native workload kinds and Pod properties. | **targets** | []string | Targets selects native workloads and, optionally, parts of their Pod specs.
With no workload policies, the action matches the selected kinds themselves.
With policies, targets scopes those policies; it does not also match the kind.
Omitted targets preserve Pod-only defaults. Controller targets are opt-in.
Whole-controller targets include every compatible location in the Pod template.
Existing pod and pod/* part targets retain their established policy scope. | false | +### Tenant.spec.rules[index].enforce.workloads.classes + + + +Classes matches the classes referenced by Pods. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **[priority](#tenantspecrulesindexenforceworkloadsclassespriorityindex)** | []object | Priority matches spec.priorityClassName of selected Pods and Pod templates
by name, or by the labels of the PriorityClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes assigns the cluster's global default class before admission, so
that name is matched like an explicit one. A controller template gets its
class only when its Pods are created, so an allow or deny rule that targets
the controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class, and
a missing class never matches it. Priority rules apply to the pod target
and do not run on subresources. An update that keeps the class is only
checked again when an allow or deny class rule has conditions; conditional
audit rules are recorded without taking that decision again.
Legacy Tenant.spec.priorityClasses restrictions remain an additional boundary. | false | +| **[runtime](#tenantspecrulesindexenforceworkloadsclassesruntimeindex)** | []object | Runtime matches spec.runtimeClassName of selected Pods and Pod templates
by name, or by the labels of the RuntimeClass. Entries, and the criteria
within each entry, are ORed. An applicable allow list rejects every other
class; audit never grants access. A Pod without a class is not matched:
Kubernetes has no default RuntimeClass, mutation has already run, and the
Pod keeps the default runtime of its node. A controller template is not
necessarily classless when its Pods run — a Tenant default or a mutation
rule can assign a class then — so an allow or deny rule that targets the
controller requires the template to name one; audit rules record its
absence. Exact and exp need no read; a label selector reads the class,
and a missing class never matches it. Runtime rules apply to the pod
target and do not run on subresources. An update that keeps the class is
only checked again when an allow or deny class rule has conditions;
conditional audit rules are recorded without taking that decision again.
Legacy Tenant.spec.runtimeClasses restrictions remain an additional boundary. | false | + + +### Tenant.spec.rules[index].enforce.workloads.classes.priority[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#tenantspecrulesindexenforceworkloadsclassespriorityindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### Tenant.spec.rules[index].enforce.workloads.classes.priority[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + +### Tenant.spec.rules[index].enforce.workloads.classes.runtime[index] + + + +StorageClassMatch matches a class by name, or by the labels of the class +object. Exact, exp and the label selector are ORed. The rule admission +validator requires at least one of them. A class object that does not exist +never matches the label selector. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **exact** | []string | Exact matches one of the provided class names exactly. | false | +| **exp** | string | Exp matches the class name by regular expression. | false | +| **[matchExpressions](#tenantspecrulesindexenforceworkloadsclassesruntimeindexmatchexpressionsindex)** | []object | matchExpressions is a list of label selector requirements. The requirements are ANDed. | false | +| **matchLabels** | map[string]string | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed. | false | + + +### Tenant.spec.rules[index].enforce.workloads.classes.runtime[index].matchExpressions[index] + + + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **key** | string | key is the label key that the selector applies to. | true | +| **operator** | string | operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist. | true | +| **values** | []string | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch. | false | + + ### Tenant.spec.rules[index].enforce.workloads.disruptionBudgets @@ -10702,9 +12202,11 @@ Mutated values remain subject to all applicable enforcement rules. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | -| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
*Enum*: merge, replace
*Default*: merge
| false | +| **action** | enum | Action chooses how explicitly supplied properties are applied.
Merge fills an empty schedulerName, an omitted priority, runtime or volume attributes class and absent security profiles, sets hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy,
and map keys, adds missing imagePullSecrets by name, upserts lists, and conjoins required affinity.
Replace replaces each supplied property in full: scheduler, classes.priority, classes.runtime, storage.attributeClass, hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, nodeSelector,
registries.imagePullSecrets, tolerations, topologySpreadConstraints, affinity, or security profiles. Omitted properties are
retained. Supplying affinity replaces all its branches, including omitted ones.
ListenerSet parent references are atomic: merge fills an absent or null
reference, while replace replaces the entire supplied reference.
DeviceClass defaults support merge only, preserving every explicit class name.
*Enum*: merge, replace
*Default*: merge
| false | | **[conditions](#tenantspecrulesindexmutateindexconditionsindex)** | []object | Conditions gate this entire mutation entry and inspect the object after
preceding mutations. All conditions must be true; empty means apply. | false | +| **[devices](#tenantspecrulesindexmutateindexdevices)** | object | Devices configures default DeviceClass references for DRA claims and templates. | false | | **[ingress](#tenantspecrulesindexmutateindexingress)** | object | Ingress configures Kubernetes ingress and Gateway API resource mutations. | false | +| **[storage](#tenantspecrulesindexmutateindexstorage)** | object | Storage configures defaults for PersistentVolumeClaims. | false | | **[workloads](#tenantspecrulesindexmutateindexworkloads)** | object | WorkloadMutation contains typed native Pod values. Empty maps/lists are
preserved so replace can clear a property; nil means the property is omitted.
It applies on Pod creation. Security.ReadOnlyRootFilesystem and
Registries.ImagePullPolicy also apply to newly added ephemeral containers on
subresource updates. Existing containers are never reconciled.
On merge, later entries override hostUsers, readOnlyRootFilesystem, registries.imagePullPolicy, matching map keys,
tolerations and spread constraints.
On merge, required affinity restrictions from applicable entries are ANDed. | false | @@ -10724,6 +12226,18 @@ otherwise volume is null. Conditions never modify the PVC or PV. | **name** | string | Name identifies a condition in admission errors. Names must be unique within a block. | false | +### Tenant.spec.rules[index].mutate[index].devices + + + +Devices configures default DeviceClass references for DRA claims and templates. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **class** | string | Class fills an omitted, null, or empty deviceClassName in each existing
exactly request and firstAvailable alternative. Explicit names and request
structure are preserved. The first applicable default wins. Supports merge
only; replace is rejected to preserve scheduler-selected allocations.
Omitted or null supplies no default. Tenant and Namespace templates are
supported; rendered names must satisfy native DeviceClass name validation. | false | + + ### Tenant.spec.rules[index].mutate[index].ingress @@ -10733,7 +12247,9 @@ Ingress configures Kubernetes ingress and Gateway API resource mutations. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **class** | string | Class sets the targeted Ingress or Gateway class on CREATE and UPDATE.
Merge fills an absent or empty class, preserving explicit field/annotation
values. Replace sets the class and keeps an existing ingress annotation in
sync. Rule changes do not reconcile existing objects. Templates are allowed;
rendered values must be valid DNS subdomains. Omitted leaves it unchanged. | false | | **[listenerSets](#tenantspecrulesindexmutateindexingresslistenersets)** | object | ListenerSets configures gateway.networking.k8s.io/v1 ListenerSets. | false | +| **types** | []enum | Types selects the kinds whose class is set. Required when class is supplied.
Gateway targets gateway.networking.k8s.io/v1. Served v1beta1 Gateway
requests receive the same class mutation for version compatibility.
ListenerSet parentRef mutation has its own explicit target and is unchanged.
*Enum*: Ingress, Route, ListenerSet, HTTPRoute, Gateway, TLSRoute, GRPCRoute
| false | ### Tenant.spec.rules[index].mutate[index].ingress.listenerSets @@ -10767,6 +12283,18 @@ Attachment remains subject to the parent's allowedListeners configuration. | **namespace** | string | Namespace identifies the parent's namespace. Omitted means the
ListenerSet's namespace; an explicit empty string is invalid. | false | +### Tenant.spec.rules[index].mutate[index].storage + + + +Storage configures defaults for PersistentVolumeClaims. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **attributeClass** | string | AttributeClass sets spec.volumeAttributesClassName on PersistentVolumeClaim
creation, including the claims the StatefulSet and ephemeral volume
controllers create from templates under their own identity. Merge fills an
omitted or null class and keeps an empty one, which chooses no class, as
an empty storageClassName opts out of the default StorageClass. The first
applicable merge wins. Replace always sets the class. Updates never change
the class, since a new class modifies the volume. Capsule neither reads nor
creates the VolumeAttributesClass; Kubernetes keeps a claim whose class
doesn't exist pending until it does. Omitted or null leaves the claim
unchanged. Tenant and Namespace templates are supported; rendered names
must satisfy native VolumeAttributesClass name validation. | false | + + ### Tenant.spec.rules[index].mutate[index].workloads @@ -10783,12 +12311,26 @@ On merge, required affinity restrictions from applicable entries are ANDed. | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | +| **[classes](#tenantspecrulesindexmutateindexworkloadsclasses)** | object | Classes configures the classes referenced by the Pod. | false | | **[placement](#tenantspecrulesindexmutateindexworkloadsplacement)** | object | Placement configures the Pod scheduler and scheduling constraints. | false | | **[registries](#tenantspecrulesindexmutateindexworkloadsregistries)** | object | Registries configures Pod image pull secrets and selected containers' pull policies. | false | | **[security](#tenantspecrulesindexmutateindexworkloadssecurity)** | object | Security configures Pod and container security settings. | false | | **targets** | []enum | Targets selects compatible Pod locations. Omitted or empty selects all
compatible locations. The pod target includes Pod-level properties and all
container groups; pod/containers, pod/initcontainers and pod/ephemeralcontainers
narrow selection to one group. Controller templates and volumes are not supported.
*Enum*: pod, pod/containers, pod/initcontainers, pod/ephemeralcontainers
| false | +### Tenant.spec.rules[index].mutate[index].workloads.classes + + + +Classes configures the classes referenced by the Pod. + + +| **Name** | **Type** | **Description** | **Required** | +| :---- | :---- | :----------- | :-------- | +| **priority** | string | Priority sets spec.priorityClassName on Pod creation, together with the
priority and preemptionPolicy of that PriorityClass. Merge fills an omitted
class; the cluster's global default class, which Kubernetes assigns before
admission, counts as omitted. The first applicable merge wins. Replace
always sets the class. The PriorityClass must exist; Capsule does not create
it. Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native PriorityClass name
validation. Requires the pod target or omitted/empty targets. | false | +| **runtime** | string | Runtime sets spec.runtimeClassName on Pod creation. Merge fills an omitted
class and preserves every class a Pod names: Kubernetes has no default
RuntimeClass, so an omitted class is unset. The first applicable merge
wins. Replace always sets the class. When the entries change the class of
a Pod, Capsule applies the overhead and the scheduling constraints of the
assigned RuntimeClass, as the API server does for the class a Pod names:
the class must exist, and a scheduling nodeSelector that conflicts with
the Pod rejects it. The constraints of the final class are restored when
a replace of nodeSelector or tolerations removes them, also when the
class itself did not change. Constraints the Pod already carries for a
class an entry replaces are residual: they are retained but not restored,
while a class replaced within the entries leaves nothing behind. The
conditions of a later entry see the overhead and the constraints of the
class assigned before them. Capsule does not create the RuntimeClass.
Omitted or null leaves the Pod unchanged. Tenant and Namespace templates
are supported; rendered names must satisfy native RuntimeClass name
validation. Requires the pod target or omitted/empty targets. | false | + + ### Tenant.spec.rules[index].mutate[index].workloads.placement @@ -11824,9 +13366,9 @@ Available Class Types within Tenant | **Name** | **Type** | **Description** | **Required** | | :---- | :---- | :----------- | :-------- | | **device** | []string | Available DeviceClasses | false | -| **gateway** | []string | Available GatewayClasses | false | -| **priority** | []string | Available PriorityClasses | false | -| **runtime** | []string | Available StorageClasses | false | +| **gateway** | []string | Deprecated: retained for API compatibility, but no longer populated.
Ingress/Gateway classes are enforced through namespace rules.
| false | +| **priority** | []string | Deprecated: retained for API compatibility, but no longer populated.
Priority classes are enforced through namespace rules.
| false | +| **runtime** | []string | Deprecated: retained for API compatibility, but no longer populated.
Runtime classes are enforced through namespace rules.
| false | | **storage** | []string | Available Storageclasses (Only collected if any matching condition is specified) | false | diff --git a/content/en/docs/tenants/namespaces.md b/content/en/docs/tenants/namespaces.md index 18a2b2d..0146f36 100644 --- a/content/en/docs/tenants/namespaces.md +++ b/content/en/docs/tenants/namespaces.md @@ -322,14 +322,17 @@ The enforcement on the maximum number of `Namespaces` per `Tenant` is the respon ## Termination -Capsule keeps it's managed resources as long as possible. Meaning even if a `Namespace` is terminated we verify the following things, before any capsule managed resources are finally removed: +Capsule keeps its managed resources as long as possible. When a `Namespace` of a `Tenant` is deleted, Capsule verifies the following, in order, before its managed resources are finally removed: -1. There are no pods in the namespace left (including pods with finalizers). Users must take own action to resolve finalizing pods. -2. All other namespaced resources have removed finalizers and are deleted (capsule will initiate that step) -3. Finally capsule managed resources are removed. +1. The grace period has elapsed since the `Namespace` deletion, 10 seconds by default. Until then, the controllers owning the remaining objects can finish on their own. +2. There are no Pods left in the `Namespace` (including Pods with finalizers). Users must take their own action to resolve finalizing Pods. +3. Capsule deletes all other namespaced resources and removes their finalizers, except the retained ones: Capsule's own finalizers on Capsule's resources, and those configured by the administrators. A `Namespace` holding a retained finalizer stays `Terminating` until its controller removes it. +4. Finally, Capsule managed resources are removed. This ensures proper cleanup of namespaces without having namespaces being stuck in `Terminating` phase and requiring administrator attention. +Administrators configure the grace period and the retained finalizers with [`namespaceCleanup`](/docs/operating/setup/configuration/#namespacecleanup) in the `CapsuleConfiguration`, for example to give a Cluster API infrastructure provider time to release its machines, or to never bypass its finalizers. + If you are running a Kubernetes Version below `1.33` you should make sure, that the `FeatureGate` `OrderedNamespaceDeletion` is enabled. This already enforces this order by default: * All Pods must be absent diff --git a/content/en/docs/whats-new.md b/content/en/docs/whats-new.md index 3588f23..8e21b10 100644 --- a/content/en/docs/whats-new.md +++ b/content/en/docs/whats-new.md @@ -26,6 +26,8 @@ outputs: ## Features ✨ +* **Capsule**: The forced cleanup of terminating Tenant namespaces is now [configurable](/docs/operating/setup/configuration/#namespacecleanup) with `namespaceCleanup` in the `CapsuleConfiguration`. `gracePeriod` gives the controllers owning the remaining objects more time than the default 10 seconds, and `retainedFinalizers` lists finalizers Capsule never removes, such as those of Cluster API, so their controllers can release external resources before the namespace goes. + * **Capsule**: [Resource policies](/docs/operating/concepts/managed-resources/#resource-policy) for `TenantResource` and `GlobalTenantResource` add conditional application and control over resource adoption, protection, and cleanup. * **Capsule**: The Helm chart has new OpenShift toggles. See the [OpenShift guide](/docs/operating/setup/openshift/#helm-chart-values) for a complete values example: