patchesJson6902
PatchesJson6902 is a mechanism used by Kustomize to apply JSON Patch operations (RFC 6902) to selected Kubernetes resources during customization. It enables precise modifications of individual fields and is an alternative to patchesStrategicMerge when fine-grained changes are required. It is processed during the build of a kustomization and results in a patched set of resources.
Structure: In a kustomization.yaml, patchesJson6902 is a list. Each item defines targets and a patch. The targets
- targets:
patch: |-
Behavior and considerations: JSON Patch operations can add, replace, remove, move, copy, or test values. It
See also: The mechanism is based on RFC 6902 and is part of Kustomize’s patching capabilities for