-
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 controllers should be reinstalled when running terraform apply with newly created k8s cluster #500
Comments
Related to #479 |
Hello @networkhermit , I hope you're doing well! I'm the newest contributor to this repository, and I'm currently in the process of issue grooming to ensure that all concerns are addressed promptly and efficiently. I noticed this issue you reported and wanted to check in with you to see if it's still affecting your work. Your feedback is invaluable to us, and any additional insights or updates you can share would be greatly appreciated to help us understand and solve the problem more effectively. If this issue has been resolved, could you please share how it was fixed? This information could be incredibly helpful to others in the community facing similar problems. It would also allow us to close this issue with a clear resolution. Thank you for your time and contributions to our community. Looking forward to your response! Best regards, Steve Note: Any resources managed by Terraform should remain managed by Terraform. If you want to re-bootstrap a cluster, you need to run |
The workaround I had settled with was running I don't think running Actually I am a little surprised by the 12 thumbs up in the issue description. They might deem this behavior as pitfall and unexpected just like I do. One thing I think k8s/terraform/flux have in common is the "reconcile loop", so ideally users/controllers can just run Personally I don't know any other terraform resource has this "reconcile one time only" behavior. And don't forget that if the whole It would be ironic if we can use flux to reconcile clusters but fail to reconcile flux_bootstrap_git. |
@networkhermit not sure if you saw #650 but would this help you? |
No. I don't need more workaround for this issue. I already comment the workaround I prefer to choose in the upmost description. Have you tried to Anyway, thanks for your contribution. I'm not demanding for a perfect solution but I think this area of behavior is open to discussion. Even if this issue is maked resolved new users would still face confusion. I have not used other flux bootstrap method, do they all have a no-op behavior when rerun the bootstrap? I think if there are difficulties aroud implementing a actual reconcilable |
You need to manage the lifecycle of bootstrapping flux using terraform and it needs to keep the state in sync, so I remove flux using |
That's just workaround. When users need to retreat to manual intervention to get things fixed, it is the limitation of |
Running |
Provider version: v1.0.0-rc.5
Environment: k3s
Steps to produce:
terraform apply
againExpected: both the helm_release and flux_bootstrap_git resources got recreated
Unexpected: only helm_release got recreated, flux_bootstrap_git doesn't introduce any terraform plan change
I also tried using
terraform taint flux_bootstrap_git.default
, but it got the following error.Running
terraform state rm flux_bootstrap_git.default
beforeterraform apply
works though.The text was updated successfully, but these errors were encountered: