kubernetes v1.34

MutatingAdmissionPolicySpec.mutations

mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.

3 fields
MutatingAdmissionPolicySpec.mutations fields and descriptions
Field / TypeDescription
ApplyConfiguration

applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.

JSONPatch

jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.

patchType
string required

patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.