hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

Contain cluster/node surge upgrade max surge/max unavailable defaults to unusable values #17164

Open brettcurtis opened 7 months ago

brettcurtis commented 7 months ago

Community Note

Terraform Version

Terraform v1.7.2

Affected Resource(s)

google_container_cluster (autoscaler) google_container_node_pool

Terraform Configuration

No response

Debug Output

No response

Expected Behavior

max_surge and max_unavailable default to 0/0 and when using surge:

image

Should the default work, maybe this isn't a norm but it's the first time I think I've seen it so I figured I'd toss it out here. Feel free to close it out if this is common behavior.

Actual Behavior

No response

Steps to reproduce

No response

Important Factoids

No response

References

No response

b/323650143

edwardmedia commented 7 months ago

Based on the doc, defaults to 0 for both attributes are questionable

jjk-g commented 6 months ago

@brettcurtis is this in manually created or NAP created node pools?

I do see that max_surge is Computed in the node_pool resource but just Optional in the cluster autoscaler schema.

brettcurtis commented 6 months ago

You're correct this is just for NAP created pools, standard node pools look good.