may not add resource with an already registered id: ~G_v1_Namespace|~X|flux-system #2505
-
|
I have the below base: apps/mycluster/base/kustomization.yaml And the below two overlays : apps/mycluster/team-a-jenkins/kustomization.yaml apps/mycluster/team-a-jenkins/namespace.yaml apps/mycluster/team-a-jenkins/patch.yaml apps/mycluster/team-b-jenkins/kustomization.yaml apps/mycluster/team-b-jenkins/namespace.yaml apps/mycluster/team-b-jenkins/patch.yaml Both overlays needs to use the flux-system namespace because that namespace contains a secret they both use - see: #2500 (reply in thread) But when I build the above with kustomize (and eventually flux) I get the below error: How do I register multiple overlays in the flux-system namespace using the same base? I know this might be a kustomize specific question but maybe flux offers some tricks to get it to work? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
|
If the overlay includes the flux-system namespace, you can delete it like this: If you have multiple kustomize overlays in the same Flux kustomization, and they are composed together using Kustomize, they will have to be sure that individually the Kustomize overlays don't create identical resources. In this case they can't all create the flux-system namespace. |
Beta Was this translation helpful? Give feedback.
-
|
Now works as expected/as described in the docs when having one kustomize.toolkit.fluxcd.io/v1beta2 per app registered in the flux-system namespace. Both sops, patching and separate namespace per app. |
Beta Was this translation helpful? Give feedback.
-
|
Guys I have the same problem .. but im trying to install flux using the community helm charts .. and my idea is to manage multiple cluster from 1 repo ... but when I tried to add my second cluster . the problems start ... because I have the nexts problems: anyone knows what means this problem or what is the configuration for the helm chart? thanks |
Beta Was this translation helpful? Give feedback.
-
|
I ran into this error due to the Kustomize CLI's Check your nested |
Beta Was this translation helpful? Give feedback.

Now works as expected/as described in the docs when having one kustomize.toolkit.fluxcd.io/v1beta2 per app registered in the flux-system namespace. Both sops, patching and separate namespace per app.