-
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
[Bug]: Health checks fail on flux_bootstrap_git when patching GitRepository name #713
Comments
It would be a great enhancement if the repository name could be passed as an input to the flux_bootstrap_git resource. This would allow users to adapt the GitRepository name to the actual name of the repository, and prevent issues like the health check failures mentioned above. |
@patrikkj, apologies for the long delay. Once a cluster is bootstrapped using the provider, it's recommended that you avoid changing the bootstrap kustomization in Terraform. For better management and consistency, it's highly recommended that all The bootstrap provider is intended to initialise the cluster once, and the You can find an example of where the |
I am very much in favor of this improvement! 👍🏼 @swade1987 Managing multiple clusters with a "bootstrap" repository is great, but I guess this does not take another use case into account: Flux setups that are only targeted for a single cluster or designed to be a all-in-one repository. This is the monorepo layout that i described in the official Flux documentation. I use this setup to maintain multiple clusters by simply having multiple "cluster-sync" Kustomizations per cluster that recursively patches other Kustomizations that should go into the desired cluster. Allowing to set the name or disable the health checks (or ignore their outcome) would definitely help towards the goal of supporting all officially documented repository layouts. |
@svengreb, sorry for the severe delay here. What I recommend is the following:
I have never had issues with the system previously; I recommend you try this and report back if you still have a problem. |
Describe the bug
Health checks fail when patching the GitRepository name. Resources are reporting as healthy in the cluster but health checks assume that the repository has the same name as the flux bootstrapping namespace. When overriding the namespace (
namespace = "flux"
) the error persists but looking for a repository namedflux
in this case.Steps to reproduce
Expected behavior
Health checks recognize the patched resource names and run against the correct resource names.
Screenshots and recordings
Error when applying resources
Kustomization is created successfully
GitRepository is also created successfully
Terraform and provider versions
Terraform v1.5.5
on darwin_arm64
Terraform provider configurations
flux_bootstrap_git resource
Flux version
v2.3.0
Additional context
Output from
terraform apply
Versions
Code of Conduct
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: