You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both types need group, version, kind and name(GVKN) of a Kubernetes resource to find
the unique target to perform the patching. In strategic merge patch, GVKN is included
in the patch itself. In JSON patch, the GVKN is specified in kustomization.yaml.
There have been requests for patching multiple targets by one patch for different purposes:
- override one field for all objects of one type
- add or remove common command arguments for all containers
- inject a [sidecar proxy](https://istio.io/docs/setup/kubernetes/sidecar-injection/) as in istio to all containers
Enhancement target (which target equals to which milestone):
Alpha release target (x.y):
Beta release target (x.y):
Stable release target (x.y):
Alpha
KEP (k/enhancements) update PR(s):
Code (k/k) update PR(s):
Docs (k/website) update PR(s):
Add Patch struct in Kustomization type.
Update the patching transformer to recognize Patch and match
multiple resources
Add unit test and integration test Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.
Enhancement Description
Extend Kustomize Patches to Multiple Targets
Currently, there are different types of patches supported in Kustomize:
strategic merge patch and JSON patch.
Both types need group, version, kind and name(GVKN) of a Kubernetes resource to find
the unique target to perform the patching. In strategic merge patch, GVKN is included
in the patch itself. In JSON patch, the GVKN is specified in
kustomization.yaml.There have been requests for patching multiple targets by one patch for different purposes:
Discussion Link:
Primary contact (assignee): @Liujingfang1 @pwittrock @mengqiy
Responsible SIGs: sig-cli
Enhancement target (which target equals to which milestone):
Alpha
k/enhancements) update PR(s):k/k) update PR(s):k/website) update PR(s):Add
Patchstruct inKustomizationtype.Update the patching transformer to recognize
Patchand matchmultiple resources
Add unit test and integration test
Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.