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
resource"google_container_cluster""default" {
name="test"location="asia-northeast1"network={id of existing vpc}
subnetwork={id of existing subnetwork}
enable_autopilot=truenode_config {
oauth_scopes=[
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
]
}
}
Expected Behavior
When I exec terrafrom plan with the above same code, terraform shows there's no change and terraform won't do anything.
Actual Behavior
When I exec terrafrom plan with the above same code, terraform says it will replace (destroy & create) the gke cluster even though there's no change.
If the code doens't have node_config, it won't happen.
Steps to Reproduce
write the above code
call terraform init
call terraform apply
call terraform apply again
The text was updated successfully, but these errors were encountered:
@kanjihnode_config.oauth_scopes does not seem to be configurable with Autopilot enabled. I'd recommend removing the field since the backend will just replace your values automatically.
It'd be nice if the provider prevented you from trying to attempt this, but I'm not sure that is possible with how node_config is structured internally.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Affected Resource
Terraform Configuration Files
Expected Behavior
When I exec terrafrom plan with the above same code, terraform shows there's no change and terraform won't do anything.
Actual Behavior
When I exec terrafrom plan with the above same code, terraform says it will replace (destroy & create) the gke cluster even though there's no change.
If the code doens't have node_config, it won't happen.
Steps to Reproduce
terraform init
terraform apply
terraform apply
againThe text was updated successfully, but these errors were encountered: