Hi everybody 👋
I'm curious how to use Kustomize patchesStrategicMerge to patch non-kubernetes resources.
I created a tiny example project, to demonstrate the issue:
https://github.com/johnhny/kustomize-patch-non-k8s
- A k8s deployment with a patch that should MERGE into the original deployment.yml
- A non-k8s resource ("bee") with a patch that should MERGE into the original bee.yml
When you run and compare these two configurations like:
diff <(kustomize build bee) <(kustomize build deployment)
... you will notice, that Kustomize/patchesStrategicMerge is not merging but replacing the original tree in the bee.yml:

For the k8s-deployment patch, all works like expected 👍
Can you give us a hint, how we can get this to work in the same way for a non-k8s resource?
Thank you,
Arno
Hi everybody 👋
I'm curious how to use Kustomize patchesStrategicMerge to patch non-kubernetes resources.
I created a tiny example project, to demonstrate the issue:
https://github.com/johnhny/kustomize-patch-non-k8s
When you run and compare these two configurations like:
... you will notice, that Kustomize/patchesStrategicMerge is not merging but replacing the original tree in the bee.yml:

For the k8s-deployment patch, all works like expected 👍
Can you give us a hint, how we can get this to work in the same way for a non-k8s resource?
Thank you,
Arno