-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Inconsistent final plan when local file contaent is unknown before apply using kube secret binary data #35332
Comments
Hi @tschneider-aneo, thanks for filing this! I think this is likely to be an issue with the kubernetes provider rather than Terraform core. There is a separate repository for the Kubernetes provider: https://github.com/hashicorp/terraform-provider-kubernetes As an aside, is there a reason you can't reference the I will close this issue here, but feel free to raise this directly with the Kubernetes team. Thanks! |
Hi @liamcervante, thank you for your answer. I'm sorry I didn't mention it, but the reason why I did not reference the kubernetes secret resource directly is because I encountered this bug while trying to access a kube secret created by a Helm release resource (deployed with TF). But deploying a Helm release is quite tedious and not necessary to reproduce the bug. |
Hello @liamcervante, I am a colleague of @tschneider-aneo, and I want to highlight the problem. |
Thanks for the extra context! I've tried to replicate this with other (non-kubernetes) generated resources and haven't been able to which is what makes me think the Kubernetes resources are introducing the problem. If you can replicate with something other than Kubernetes than we could more likely show this is a Terraform Core problem. |
Note, I've found hashicorp/terraform-provider-kubernetes#2444. This is marked as acknowledged, so I think this is a known bug the provider team is working on. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/tschneider-aneo/691a2d49d4ee0a69ec035b00622834a9
Expected Behavior
TF should know that the local file's content will be known during apply and should just wait for the data source to retrieve the kube secret data.
Actual Behavior
TF seems to be converting an unknown value to a null value, producing the inconsistent final plan error.
Steps to Reproduce
Additional Context
The kube secret syntax for retrieving base64-encoded data seems to be problematic
References
No response
The text was updated successfully, but these errors were encountered: