-
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
google_container_cluster
: enable_autopilot
conflicts with remove_default_node_pool
when set explicitly to false
#20991
Comments
Confirmed issue! This could be contradictory as user explains since after creating the resource the value of |
Hmm, isn't this standard behavior for the Terraform
ConflictsWith only accepts names of fields, not values, so it just knows that I don't think we'd want to reinvent any wheels by doing some kinda custom alternative to @NickElliot, can/should this be closed as won't fix, due to being standard behavior of |
Correct, this would be the standard behavior of |
Community Note
When setting
enable_autopilot
explicitly tofalse
which is its default value,terrafrom plan
fails with a "Conflicting configuration arguments" message.The following Terraform configuration:
results in the conflict error.
However, commenting out the
enable_autopilot
line, which should effectively be the same, succeeds.Terraform Version & Provider Version(s)
Affected Resource(s)
google_container_cluster
Terraform Configuration
Debug Output
https://gist.github.com/guineveresaenger/b9fd8fed6f816328455e0cb14954228f
Expected Behavior
I expected the plan to succeed - setting
enable_autopilot
tofalse
should be no different than using the default.Actual Behavior
Conflict message
Steps to reproduce
Run the above configuration with
terraform plan
.Important Factoids
No response
References
Possibly similar? #17045
b/391643648
The text was updated successfully, but these errors were encountered: