# io.k8s.api.admissionregistration.v1alpha1.Mutation

From **Kubernetes**.

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

- Type: `object`

## Properties

### `applyConfiguration`

- Required: false
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`

- Required: false
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`

- Required: true
- Type: `string`

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

## JSON Schema

```json
{"description":"Mutation specifies the CEL expression which is used to apply the Mutation.","properties":{"applyConfiguration":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.admissionregistration.v1alpha1.ApplyConfiguration"}],"description":"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":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.admissionregistration.v1alpha1.JSONPatch"}],"description":"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":{"default":"","description":"patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.","type":"string"}},"required":["patchType"],"type":"object"}
```
