Replace item in list with Kustomize
Notes
| 2025-09-16
(updated 2025-10-25)
| 1 min read
#k8s
#kustomize
Kubernetes resources have quite a lot of lists in them and replacing an item in such lists is quite easy
using kustomize patches with op: replace.
Replacing a specific list item safely however is not as obvious as the order of items could change, leading to a technically valid but practically incorrect manifest.