-
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
Add support for GKE Autopilot in google_container_cluster
resource
#8632
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulwilljones Thanks for starting this process. With the amount of differences between autopilot and standard GKE, this is not a straightforward change. We want to be cautious and ensure that standard GKE UX is not disrupted.
In addition to the comments already suggested, I would request more extensive testing:
- A test config with all available fields set
- A test checking the error for autopilot on a zonal cluster (similar to https://github.com/hashicorp/terraform-provider-google/blob/master/google/resource_container_cluster_test.go#L1468)
Thanks both. I'll take a look at those changes.
|
Omitting shielded nodes from the request altogether works correct? |
4a8bf9a
to
ac1c36e
Compare
This is absolutely fantastic! Cannot wait to see this merged and ready to be consumed :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the changes!
I'll work on getting this upstreamed to https://github.com/GoogleCloudPlatform/magic-modules where there'll be more testing and another review.
ac1c36e
to
76557c6
Compare
not trying to be pesky - any idea when this will hit the provider? |
@cmcga1125 My estimate is version |
@paulwilljones If you are interested in taking a stab at the failing tests, I have found there are a few types of failures:
Otherwise, I plan to address them in GoogleCloudPlatform/magic-modules#4591 |
af508a6
to
8ea195f
Compare
Addressed in 8ea195f |
@@ -364,10 +367,19 @@ func resourceContainerCluster() *schema.Resource { | |||
}, | |||
|
|||
"enable_shielded_nodes": { | |||
Type: schema.TypeBool, | |||
Optional: true, | |||
Default: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@c2thorn Enabling Shielded Nodes by default is in alignment with GKE 1.18.
I'm seeing test failures (for example TestAccContainerCluster_withMasterAuthConfig
) when shielded nodes is false
:
# google_container_cluster.with_master_auth_no_cert will be updated in-place
~ resource "google_container_cluster" "with_master_auth_no_cert" {
~ enable_shielded_nodes = true -> false
8ea195f
to
c51741a
Compare
@paulwilljones I've made a few changes to the upstream PR in GoogleCloudPlatform/magic-modules#4591 and believe I have a working iteration. Syncing this PR isn't required, since the upstream PR will cover the differences. |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
Adds support for GKE Autopilot to
google_container_cluster
resource.Due to the defaults set in GKE Autopilot, some features of GKE aren't available when in Autopilot mode.