-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flux_bootstrap_git
cannot support >1 GitRepository
#429
Comments
Hello, I am facing the second issue as well. Could we have some updates on this, or at least a workaround ? |
I expect users to create extra GitRepositories and Kustomizations in the bootstrap repo instead of applying them directly on the cluster with Terraform. Using TF for this breaks the GitOps promise, as any update to these objects need cluster access instead of doing them directly in the bootstrap repo. Anyway, if you really want to do this, please see #480 |
Thank you for opening this PR, which solves the first issue and could be used as a workaround for the second one, too. However, would it be possible to open another PR to enable overriding the name of the base |
I'm not for allowing this, the Terraform provider must subscribe to Flux bootstrap conventions as implemented in the CLI. |
I did a deep dive into migrating from the old way of deploying flux to a GKE cluster to the new
flux_bootstrap_git
resource today and was unable to complete the migration due to two main issues with its current implementation:1 -
flux_bootstrapt_git
cannot be used to deploy >1GitRepository
into a single cluster, within a single terraform workspace (directory).GitRepository
s. With the old TF implementation, I just added some minor logic to conditionally run theinstall
portion of the flux implementation - that way I could install flux components once and only once. With this new setup - there is no way to conditionally install the flux core components (CRDs). I attempted to pass an empty array to thecomponents
parameter - but that resulted in the following error:2 - there is no parameter in the
flux_bootstrap_resource
that allows you to override the name of the baseGitRepository
andKustomization
. The default (and unchangeable) value for these resources isflux-system
.GitRepository
in a single cluster because theGitRepository
andKustomization
name cannot be changed, and therefore would conflict with each other.I would venture to guess that at least some of fluxcd users are running more than a single
GitRepository
in their clusters, so I think that both of these configuration options would be relevant and worthwhile to implement.The text was updated successfully, but these errors were encountered: