|
这是尚未发布的文档。 Admission Controller 1.39-dev. |
Custom Resource Definitions (CRD)
You can find the definitions for the SUSE Security Admission Controller Custom Resources on this page.
API Reference
policies.kubewarden.io/v1
Package v1 contains API Schema definitions for the policies v1 API group
AdmissionPolicy
AdmissionPolicy is the Schema for the admissionpolicies API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
AdmissionPolicyGroup
AdmissionPolicyGroup is the Schema for the AdmissionPolicyGroups API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
AdmissionPolicyGroupList
AdmissionPolicyGroupList contains a list of AdmissionPolicyGroup.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
AdmissionPolicyGroupSpec
AdmissionPolicyGroupSpec defines the desired state of AdmissionPolicyGroup.
| Field | Description | Default | Validation |
|---|---|---|---|
|
AdmissionPolicyList
AdmissionPolicyList contains a list of AdmissionPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
AdmissionPolicySpec
AdmissionPolicySpec defines the desired state of AdmissionPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
ClusterAdmissionPolicy
ClusterAdmissionPolicy is the Schema for the clusteradmissionpolicies API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
ClusterAdmissionPolicyGroup
ClusterAdmissionPolicyGroup is the Schema for the clusteradmissionpolicies API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
ClusterAdmissionPolicyGroupList
ClusterAdmissionPolicyGroupList contains a list of ClusterAdmissionPolicyGroup
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
ClusterAdmissionPolicyGroupSpec
ClusterAdmissionPolicyGroupSpec defines the desired state of ClusterAdmissionPolicyGroup.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on objects whose namespace does not have a runlevel of 0 or 1, use this selector:
To run the webhook only on objects whose namespace has an environment of prod or staging, use this selector:
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
|
|
AllowInsideAdmissionControllerNamespace controls whether the policy should also be evaluated for resources in the namespace where Kubewarden is deployed. By default (false), an exclusion rule is added to the webhook so that the Kubewarden namespace is never targeted, protecting against an accidental lockout. Set this to true only if you deliberately want the policy to apply inside the Kubewarden namespace. Warning: setting this to true may cause a deadlock if the policy prevents Kubewarden components from starting. |
Optional: \{} |
ClusterAdmissionPolicyList
ClusterAdmissionPolicyList contains a list of ClusterAdmissionPolicy
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
ClusterAdmissionPolicySpec
ClusterAdmissionPolicySpec defines the desired state of ClusterAdmissionPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on objects whose namespace does not have a runlevel of 0 or 1, use this selector:
To run the webhook only on objects whose namespace has an environment of prod or staging, use this selector:
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
|
|
List of Kubernetes resources the policy is allowed to access at evaluation time.
Access to these resources is done using the |
Optional: \{} |
|
|
AllowInsideAdmissionControllerNamespace controls whether the policy should also be evaluated for resources in the namespace where Kubewarden is deployed. By default (false), an exclusion rule is added to the webhook so that the Kubewarden namespace is never targeted, protecting against an accidental lockout. Set this to true only if you deliberately want the policy to apply inside the Kubewarden namespace. Warning: setting this to true may cause a deadlock if the policy prevents Kubewarden components from starting. |
Optional: \{} |
ClusterPolicyGroupSpec
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
Policies is a list of policies that are part of the group that will be available to be called in the evaluation expression field. Each policy in the group should be a Kubewarden policy. |
Required: \{} |
ContextAwareResource
ContextAwareResource identifies a Kubernetes resource.
| Field | Description | Default | Validation |
|---|---|---|---|
|
apiVersion of the resource (v1 for core group, groupName/groupVersions for other). |
||
|
Singular PascalCase name of the resource |
GroupSpec
| Field | Description | Default | Validation |
|---|---|---|---|
|
PolicyServer identifies an existing PolicyServer resource. |
default |
Optional: \{} |
|
Mode defines the execution mode of this policy. Can be set to either "protect" or "monitor". If it’s empty, it is defaulted to "protect". Transitioning this setting from "monitor" to "protect" is allowed, but is disallowed to transition from "protect" to "monitor". To perform this transition, the policy should be recreated in "monitor" mode instead. |
protect |
Enum: [protect monitor] |
|
Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches any Rule. |
||
|
FailurePolicy defines how unrecognized errors and timeout errors from the policy are handled. Allowed values are "Ignore" or "Fail". * "Ignore" means that an error calling the webhook is ignored and the API request is allowed to continue. * "Fail" means that an error calling the webhook causes the admission to fail and the API request to be rejected. The default behaviour is "Fail" |
Optional: \{} |
|
|
BackgroundAudit indicates whether a policy should be used or skipped when performing audit checks. If false, the policy cannot produce meaningful evaluation results during audit checks and will be skipped. The default is "true". |
true |
Optional: \{} |
|
matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
Defaults to "Equivalent" |
Optional: \{} |
|
|
MatchConditions are a list of conditions that must be met for a request to be
validated. Match conditions filter requests that have already been matched by
the rules, namespaceSelector, and objectSelector. An empty list of
matchConditions matches all requests. There are a maximum of 64 match
conditions allowed. If a parameter object is provided, it can be accessed via
the |
Optional: \{} |
|
|
ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
|
|
SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. |
||
|
TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 2 and 30 seconds. Default to 10 seconds. |
10 |
Maximum: 30 |
|
Expression is the evaluation expression to accept or reject the admission request under evaluation. This field uses CEL as the expression language for the policy groups. Each policy in the group will be represented as a function call in the expression with the same name as the policy defined in the group. The expression field should be a valid CEL expression that evaluates to a boolean value. If the expression evaluates to true, the group policy will be considered as accepted, otherwise, it will be considered as rejected. This expression allows grouping policies calls and perform logical operations on the results of the policies. See Kubewarden documentation to learn about all the features available. |
Required: \{} |
|
|
Message is used to specify the message that will be returned when the policy group is rejected. The specific policy results will be returned in the warning field of the response. |
Required: \{} |
PolicyGroupMember
| Field | Description | Default | Validation |
|---|---|---|---|
|
Module is the location of the WASM module to be loaded. Can be a local file (file://), a remote file served by an HTTP server (http://, https://), or an artifact served by an OCI-compatible registry (registry://). If prefix is missing, it will default to registry:// and use that internally. |
Required: \{} |
|
|
Settings is a free-form object that contains the policy configuration values. x-kubernetes-embedded-resource: false |
Optional: \{} |
|
|
TimeoutEvalSeconds specifies the timeout for the policy evaluation. After the timeout passes, the policy evaluation call will fail based on the failure policy. The timeout value must be between 2 and 30 seconds. |
Maximum: 30 |
PolicyGroupMemberWithContext
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
List of Kubernetes resources the policy is allowed to access at evaluation time.
Access to these resources is done using the |
Optional: \{} |
PolicyGroupMembers
Underlying type: object (keys:string, values:PolicyGroupMember)
PolicyGroupMembersWithContext
Underlying type: object (keys:string, values:PolicyGroupMemberWithContext)
PolicyGroupSpec
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
Policies is a list of policies that are part of the group that will be available to be called in the evaluation expression field. Each policy in the group should be a Kubewarden policy. |
Required: \{} |
PolicyServer
PolicyServer is the Schema for the policyservers API.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
PolicyServerList
PolicyServerList contains a list of PolicyServer.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
PolicyServerSecurity
PolicyServerSecurity defines securityContext configuration to be used in the Policy Server workload.
| Field | Description | Default | Validation |
|---|---|---|---|
|
securityContext definition to be used in the policy server container |
Optional: \{} |
|
podSecurityContext definition to be used in the policy server Pod |
Optional: \{} |
PolicyServerSpec
PolicyServerSpec defines the desired state of PolicyServer.
| Field | Description | Default | Validation | ||
|---|---|---|---|---|---|
|
Docker image name. |
||||
|
Replicas is the number of desired replicas. |
||||
|
Number of policy server replicas that must be still available after the eviction. The value can be an absolute number or a percentage. Only one of MinAvailable or Max MaxUnavailable can be set. |
||||
|
Number of policy server replicas that can be unavailable after the eviction. The value can be an absolute number or a percentage. Only one of MinAvailable or Max MaxUnavailable can be set. |
||||
|
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ |
Optional: \{} |
|||
|
Labels is a map of custom labels to be applied to the Deployment created by the PolicyServer and to the Pods managed by that Deployment. System labels set by the controller always take precedence over user-defined labels with the same key. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
Optional: \{} |
|||
|
List of environment variables to set in the container. |
Optional: \{} |
|||
|
Name of the service account associated with the policy server. Namespace service account will be used if not specified. |
Optional: \{} |
|||
|
Name of ImagePullSecret secret in the same namespace, used for pulling policies from repositories. |
Optional: \{} |
|||
|
List of insecure URIs to policy repositories. The |
Optional: \{} |
|||
|
Key value map of registry URIs endpoints to a list of their associated
PEM encoded certificate authorities that have to be used to verify the
certificate used by the endpoint. The |
Optional: \{} |
|||
|
Name of VerificationConfig configmap in the kubewarden namespace (same namespace as the controller deployment), containing Sigstore verification configuration. The configuration must be under a key named verification-config in the ConfigMap. |
Optional: \{} |
|||
|
Name of SigstoreTrustConfig configmap in the kubewarden namespace (same namespace as the controller deployment), containing Sigstore trust configuration (ClientTrustConfig JSON). The configuration must be under a key named sigstore-trust-config in the ConfigMap. This is used to configure a custom Sigstore instance instead of the default public Sigstore infrastructure. WARNING: This feature requires strict access control. Users with write access to this ConfigMap can influence policy signature verification. |
Optional: \{} |
|||
|
Security configuration to be used in the Policy Server workload. The field allows different configurations for the pod and containers. If set for the containers, this configuration will not be used in containers added by other controllers (e.g. telemetry sidecars) |
Optional: \{} |
|||
|
Affinity rules for the associated Policy Server pods. |
Optional: \{} |
|||
|
Limits describes the maximum amount of compute resources allowed. |
Optional: \{} |
|||
|
Requests describes the minimum amount of compute resources required. If Request is omitted for, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value |
Optional: \{} |
|||
|
Tolerations describe the policy server pod’s tolerations. It can be used to ensure that the policy server pod is not scheduled onto a node with a taint. |
||||
|
PriorityClassName is the name of the PriorityClass to be used for the policy server pods. Useful to schedule policy server pods with higher priority to ensure their availability over other cluster workload resources. Note: If the referenced PriorityClass is deleted, existing pods remain unchanged, but new pods that reference it cannot be created. |
Optional: \{} |
|||
|
NamespacedPoliciesCapabilities lists host capability API calls allowed for namespaced policies running on this PolicyServer. When not set, all host capabilities are granted to namespaced policies. Supported wildcard patterns: - "": allow all host capabilities - "category/": allow all capabilities in a category (e.g. "oci/") - "category/version/": allow all capabilities of a specific version (e.g. "oci/v1/*") - Specific capability paths (e.g. "oci/v1/verify", "net/v1/dns_lookup_host") |
Optional: \{} |
|||
|
Port where the policy server listens for incoming webhook requests. When unset, defaults to 8443. This is the port the Kubernetes API server reaches when evaluating admission requests. |
Maximum: 65535 |
|||
|
Port used by the policy server to expose the readiness probe endpoint. When unset, defaults to 8081. |
Maximum: 65535 |
|||
|
Port exposed by the metrics Service for this policy server. When unset, defaults to the controller-wide default (KUBEWARDEN_POLICY_SERVER_SERVICES_METRICS_PORT env var, or 8080). Only relevant when metrics are enabled. Use this field to customize which port Prometheus scrapes for this PolicyServer’s metrics Service (e.g. to match naming conventions or avoid Service-level port collisions).
|
Maximum: 65535 |
PolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
|
PolicyServer identifies an existing PolicyServer resource. |
default |
Optional: \{} |
|
Mode defines the execution mode of this policy. Can be set to either "protect" or "monitor". If it’s empty, it is defaulted to "protect". Transitioning this setting from "monitor" to "protect" is allowed, but is disallowed to transition from "protect" to "monitor". To perform this transition, the policy should be recreated in "monitor" mode instead. |
protect |
Enum: [protect monitor] |
|
Module is the location of the WASM module to be loaded. Can be a local file (file://), a remote file served by an HTTP server (http://, https://), or an artifact served by an OCI-compatible registry (registry://). If prefix is missing, it will default to registry:// and use that internally. |
Required: \{} |
|
|
Settings is a free-form object that contains the policy configuration values. x-kubernetes-embedded-resource: false |
Optional: \{} |
|
|
Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches any Rule. |
||
|
FailurePolicy defines how unrecognized errors and timeout errors from the policy are handled. Allowed values are "Ignore" or "Fail". * "Ignore" means that an error calling the webhook is ignored and the API request is allowed to continue. * "Fail" means that an error calling the webhook causes the admission to fail and the API request to be rejected. The default behaviour is "Fail" |
Optional: \{} |
|
|
Mutating indicates whether a policy has the ability to mutate incoming requests or not. |
||
|
BackgroundAudit indicates whether a policy should be used or skipped when performing audit checks. If false, the policy cannot produce meaningful evaluation results during audit checks and will be skipped. The default is "true". |
true |
Optional: \{} |
|
matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
Defaults to "Equivalent" |
Optional: \{} |
|
|
MatchConditions are a list of conditions that must be met for a request to be
validated. Match conditions filter requests that have already been matched by
the rules, namespaceSelector, and objectSelector. An empty list of
matchConditions matches all requests. There are a maximum of 64 match
conditions allowed. If a parameter object is provided, it can be accessed via
the |
Optional: \{} |
|
|
ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
|
|
SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. |
||
|
TimeoutSeconds specifies the timeout for the policy webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 2 and 30 seconds. Default to 10 seconds. |
10 |
Maximum: 30 |
|
TimeoutEvalSeconds specifies the timeout for the policy evaluation. After the timeout passes, the policy evaluation call will fail based on the failure policy. The timeout value must be between 2 and 30 seconds. |
Maximum: 30 |
|
|
Message overrides the rejection message of the policy.
When provided, the policy’s rejection message can be found
inside of the |
Optional: \{} |
policies.kubewarden.io/v1alpha2
Package v1alpha2 contains API Schema definitions for the policies v1alpha2 API group
AdmissionPolicy
AdmissionPolicy is the Schema for the admissionpolicies API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
AdmissionPolicyList
AdmissionPolicyList contains a list of AdmissionPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
AdmissionPolicySpec
AdmissionPolicySpec defines the desired state of AdmissionPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
ClusterAdmissionPolicy
ClusterAdmissionPolicy is the Schema for the clusteradmissionpolicies API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
ClusterAdmissionPolicyList
ClusterAdmissionPolicyList contains a list of ClusterAdmissionPolicy
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
ClusterAdmissionPolicySpec
ClusterAdmissionPolicySpec defines the desired state of ClusterAdmissionPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on objects whose namespace does not have a runlevel of 0 or 1, use this selector:
To run the webhook only on objects whose namespace has an environment of prod or staging, use this selector:
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
PolicyServer
PolicyServer is the Schema for the policyservers API.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
PolicyServerList
PolicyServerList contains a list of PolicyServer.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
PolicyServerSpec
PolicyServerSpec defines the desired state of PolicyServer.
| Field | Description | Default | Validation |
|---|---|---|---|
|
Docker image name. |
||
|
Replicas is the number of desired replicas. |
||
|
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ |
Optional: \{} |
|
|
List of environment variables to set in the container. |
Optional: \{} |
|
|
Name of the service account associated with the policy server. Namespace service account will be used if not specified. |
Optional: \{} |
|
|
Name of ImagePullSecret secret in the same namespace, used for pulling policies from repositories. |
Optional: \{} |
|
|
List of insecure URIs to policy repositories. The |
Optional: \{} |
|
|
Key value map of registry URIs endpoints to a list of their associated
PEM encoded certificate authorities that have to be used to verify the
certificate used by the endpoint. The |
Optional: \{} |
|
|
Name of VerificationConfig configmap in the same namespace, containing Sigstore verification configuration. The configuration must be under a key named verification-config in the Configmap. |
Optional: \{} |
PolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
|
PolicyServer identifies an existing PolicyServer resource. |
default |
Optional: \{} |
|
Module is the location of the WASM module to be loaded. Can be a local file (file://), a remote file served by an HTTP server (http://, https://), or an artifact served by an OCI-compatible registry (registry://). |
Required: \{} |
|
|
Mode defines the execution mode of this policy. Can be set to either "protect" or "monitor". If it’s empty, it is defaulted to "protect". Transitioning this setting from "monitor" to "protect" is allowed, but is disallowed to transition from "protect" to "monitor". To perform this transition, the policy should be recreated in "monitor" mode instead. |
protect |
Enum: [protect monitor] |
|
Settings is a free-form object that contains the policy configuration values. x-kubernetes-embedded-resource: false |
Optional: \{} |
|
|
Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches any Rule. |
||
|
FailurePolicy defines how unrecognized errors and timeout errors from the policy are handled. Allowed values are "Ignore" or "Fail". * "Ignore" means that an error calling the webhook is ignored and the API request is allowed to continue. * "Fail" means that an error calling the webhook causes the admission to fail and the API request to be rejected. The default behaviour is "Fail" |
Optional: \{} |
|
|
Mutating indicates whether a policy has the ability to mutate incoming requests or not. |
||
|
matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
Defaults to "Equivalent" |
Optional: \{} |
|
|
ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
|
|
SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. |
||
|
TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. |
10 |
Optional: \{} |