How to use multiple namespace within base and child directory. #5088
-
Hi Below is the issue I am facing. Can anyone please help me? We have flux v2.4.0 There are two env dev and prod. Below is the structure we have
base/release.yaml has below code
prod/app-name-values.yaml has below code
My expectation was when the code is deployed in prod it would override base namespace with prod namespace but instead it fails with below error
In order to fix this I had to update the base.yaml with prod namespace. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Patches shouldn't contain |
Beta Was this translation helpful? Give feedback.
-
That worked thank you so much. |
Beta Was this translation helpful? Give feedback.
Patches shouldn't contain
metadata.namespace
, set thepatch.target
using kind and name, and set the namespace in thekustomization.yaml
. You can test it locally by runningkustomize build
and see what the output is without pushing to Git.