How is / can the order between resources in gitops repo controlled? #1196
-
Hi, This might be a bit of a naive question, please point me at the correct documentation and I'll be happy to read it. I have a gitops repo, and flux2 deployment. In the git ops repo I have defined an ExternalSecret resource, in another I have defined a HelmRelease resource for the kubernetes-external-secrets service. The kubernetes-external-secrets helm chart provides the ExternalSecret CRD. The kustomize logs fails with:
There is a dependency between these two resources. How can/should I express this dependency so as to fix this error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
With Flux you can split your manifests into layers, for example an Here is an example repo if you want to take a look https://github.com/fluxcd/flux2-kustomize-helm-example#bootstrap-staging-and-production |
Beta Was this translation helpful? Give feedback.
With Flux you can split your manifests into layers, for example an
infra
layer that gets deployed before theapps
layer. The reconciliation order can be controlled using dependsOn.Here is an example repo if you want to take a look https://github.com/fluxcd/flux2-kustomize-helm-example#bootstrap-staging-and-production