-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Can't specify empty set of taints on GKE node pools #4168
Comments
Due to how this is implemented (as an GKE tends to add taints at will based on using certain features, so I'm not sure that requiring users to always define their node pool taints in their TF config is a great idea, although sticking unnecessary taints on users' node pools isn't great either. |
Not sure I agree with the assessment that this isn't a bug, irrespective of whether a fix would be a breaking change or not. Concretely, we had a node pool defined with a taint. I then removed the taint in terraform but this did nothing to the node pool. The taint remains. At this point, my state doesn't match my intent. Are there any known workarounds in the interim? |
Yeah, this falls somewhere in the middle of both. Since functionality that should work doesn't, this is a bug. On the other hand, we expect removal to not work right now due to the implementation, and making it work is an enhancement. I lean a bit more closely towards it being an enhancement for our issue classification purposes. Regardless of that classification, fixing taints will be part of Unfortunately, there are no known workarounds other than possibly declaring a useless taint, or manually reconciling the resource out of band with |
@rileykarson - noticed this was closed. Will this be in a 2.x release of the provider? |
This will appear in the https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/version_3_upgrade.html.markdown#taint-field-is-now-authoritative-when-set contains some justification for why it's there and couldn't have landed in a |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform Version
Terraform v0.12.6
Affected Resource(s)
Terraform Configuration Files
Before:
After:
Debug Output
https://gist.github.com/shields-fn/641926b7b3a68adc70e42dad82094563
Panic Output
None
Expected Behavior
The node pool should have been destroyed and recreated without Kubernetes taints.
Actual Behavior
Nothing;
terraform plan
reports that no changes are needed.Steps to Reproduce
terraform apply
taint
section of configterraform apply
The text was updated successfully, but these errors were encountered: