Help on Understanding a Dependency Misconfiguration #5172
Unanswered
emanuele-leopardi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
First of all, let me show you what was the initial state of the cluster.
This is a classical directory structure for repositories hosting flux
So nothing special here.
The kustomization file looks like this
As we are on EKS we run flux with a role to access KMS, again nothing special here.
We also have dependencies between
controllers
andconfigurations
kustomization files, so we created the following configurationHere's the simplified directory structure
This all worked fine as expected.
Now...we wanted to add some applications so that the directory structure would become the following
we also wanted to explicitly say that
app
kustomization has a dependency oncontrollers
so we created the following filesNow, as soon as we merged this commit into our master branch ( tracked by source controller) flux started going mad, trying to reconcile every kustomization, disrupting the service, and even removing the flux-system namespace and of course everything that was deployed there, so I'm reasonably confident the directory structure is not correct.
How should I structure the directories to achieve the dependency schema I want between them?
Id est
apps/ks.yaml
andinfra/configurations/ks.yaml
depend oninfra/controllers/ks.yaml
Beta Was this translation helpful? Give feedback.
All reactions