OS
Schema Hub

Mutation

Mutation specifies the CEL expression which is used to apply the Mutation.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/admissionregistration.api.k8s.io/Mutation_v1beta1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/admissionregistration.api.k8s.io/Mutation_v1beta1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

applyConfigurationobject
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.
jsonPatchobject
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.
patchTypestringRequired
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.

Version Diff

Compare: