-
Notifications
You must be signed in to change notification settings - Fork 986
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
Namespace well-known label "kubernetes.io/metadata.name" always in plan #1293
Comments
Maybe this is a stupid question but is there a way to produce |
@sambonbonne I don't think it's possible to omit sensitive information in the debug logs. I just checked the bug tracker on Terraform Core to see what they recommend, and it looks like they recommend manually reviewing the logs to ensure there's no sensitive data. There is also the option to encrypt the data using the public hashicorp GPG key. But maybe we can just narrow the scope of the debug logs instead, to simplify things.
I'd be more interested in a reproducer though -- I wasn't able to reproduce using the example in the original post. Here's the config file I tried: I wonder if you can get it to reproduce the issue in a small config file like that one? That will make it easier to ensure there's no sensitive data being revealed. |
Looks like this label was missing from the well known list – although I couldn't reproduce this either, I suspect the addition of this label might be cluster dependent. Have opened the PR above to fix. |
To reproduce this, I used the same config file as in my gist above, and manually did a |
Wow, I did not think I would see a fix so quickly 😳 And thanks for the information about sensitive data in logs |
EDIT: after running a simple I tried the Did I miss a step? |
Can you try running |
Actually, don't worry about testing yet; I'm expecting this PR to fix the issue. #1298 |
Just in case, I ran the
|
Version 2.3.2 has been released, which has the fix that I believe will solve the issue. Let us know if you're still having trouble with it. Thanks! |
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, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
The given configuration is part of a bigger module so the trace is long. I am trying to remove sensitive information of logs before publishing.
Panic Output
No panic
Steps to Reproduce
terraform plan
after the namespace has been created, without modifying the Terraform configurationExpected Behavior
The plan should not change anything.
Actual Behavior
The plan show a removing of the namespace's
kubernetes.io/metadata.name
label.Important Factoids
The cluster is running on Scaleway Kapsule.
I have kubernetes_secret configured in the same file but it does not have this issue.
References
I searched but did not found other issues.
The provider documentation tells well-known labels are recognized by Terraform, but it seems it's not the case here.
Community Note
The text was updated successfully, but these errors were encountered: