You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
If an issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to "hashibot", a community member has claimed the issue already.
resource"google_container_node_pool""foo" {
name="foo"cluster="${google_container_cluster.cluster.name}"# max_pods_per_node = 123 or even omitting the field# ...
}
Debug Output
Can provide if needed, it'd take me some time to sanitize it.
Panic Output
No panic.
Expected Behavior
max_pods_per_node should probably force a new resource. Most likely this field can not be changed on Google's side because that'd require changing the underlying instance group/template.
Actual Behavior
At the moment the Google API is not rejecting requests to attempt to modify it, but it seems to silently discard the change. If I omit the field I get an update-in-place on all of my plans/applies:
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ module.kubernetes.google_container_node_pool.foo
max_pods_per_node: "110" => "0"
~ module.kubernetes.google_container_node_pool.bar
max_pods_per_node: "110" => "0"
~ module.kubernetes.google_container_node_pool.baz
max_pods_per_node: "110" => "0"
This goes through fine, i.e. I get Apply complete! Resources: 0 added, 3 changed, 0 destroyed. every time, but it comes up again on every plan.
Steps to Reproduce
Have a node pool that was created pre-1.18 of this provisioner (so the field in terraform state is still empty)
Update provisioner to 1.18
terraform plan/apply, rinse and repeat
Important Factoids
This is a Beta feature that's not yet well (or really, at all) documented on Google's side so it might be premature to make it force new. While very unexpected, Google might make this change-able.
To be honest I'm not 100% sure what computed actually means. Does marking a field computed mean that you can still change it without having to recreate the resource? If so, I'm not sure that's enough. As I mentioned in the opening message I do not think this field is intended to be changeable, or at the very least the GCP API seems to discard modifications to it.
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!
ghost
locked and limited conversation to collaborators
Nov 16, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform Version
Affected Resource(s)
google_container_cluster
google_container_node_pool
Terraform Configuration Files
Debug Output
Can provide if needed, it'd take me some time to sanitize it.
Panic Output
No panic.
Expected Behavior
max_pods_per_node
should probably force a new resource. Most likely this field can not be changed on Google's side because that'd require changing the underlying instance group/template.Actual Behavior
At the moment the Google API is not rejecting requests to attempt to modify it, but it seems to silently discard the change. If I omit the field I get an update-in-place on all of my plans/applies:
This goes through fine, i.e. I get
Apply complete! Resources: 0 added, 3 changed, 0 destroyed.
every time, but it comes up again on every plan.Steps to Reproduce
terraform plan/apply
, rinse and repeatImportant Factoids
This is a Beta feature that's not yet well (or really, at all) documented on Google's side so it might be premature to make it force new. While very unexpected, Google might make this change-able.
References
The text was updated successfully, but these errors were encountered: