Kustomize supports two ways to modify live kubernetes manifests:
- patches: upstream docs
Patches (also called overlays) add or override fields on resources. They are provided using the patches Kustomization field.
- replacements: upstream docs
Replacements are used to copy fields from one source into any number of specified targets.
They seemingly serve the same purpose.
What are the differences between them? In which situations one is recommended over the other?