Update resource_container_cluster.go.erb
Fix autopilot diff suppression func. We only need a diff if a cluster already exists.
This will fix https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/2042 and other similar issues
Release Note Template for Downstream PRs (will be copied)
Fix autopilot diff suppression func.
We only need a diff if a cluster already exists.
This will fix https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/2042 and other similar issues
Hello! I am a robot. Tests will require approval from a repository maintainer to run.
@slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.
You can help make sure that review is quick by doing a self-review and by running impacted tests locally.
@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.
Hi Team, Can you take a look at this Request? It is one of the core requirement for the enterprise customer
cc - @maci0 @slevenick
@GoogleCloudPlatform/terraform-team @slevenick This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.
For one, this function is being used in 6 places across this file. Are we sure that we should be adding those fields to the initial plan for autopilot clusters? Is specifying things like disk size valid for autopilot clusters?
This I am not 100% sure about and would need to be verified/tested.
Second, if we're giving users the ability to set these fields on create, why would they not be able to update them? If a user can set
additive_vpc_scope_dns_domainon an autopilot cluster, if they modify that value it should show a diff.
Autopilot doesn't support changing this block after the initial cluster creation. Standard GKE does though. So effectively it's immutable for Autopilot only, if this will change in the future I don't know but that is what autopilot currently supports. I'm sure there's another more proper way to implement this edge case but personally I am not too familiar with the codebase here.
@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label disable-review-reminders to disable these notifications.
For one, this function is being used in 6 places across this file. Are we sure that we should be adding those fields to the initial plan for autopilot clusters? Is specifying things like disk size valid for autopilot clusters?
This I am not 100% sure about and would need to be verified/tested.
Second, if we're giving users the ability to set these fields on create, why would they not be able to update them? If a user can set
additive_vpc_scope_dns_domainon an autopilot cluster, if they modify that value it should show a diff.Autopilot doesn't support changing this block after the initial cluster creation. Standard GKE does though. So effectively it's immutable for Autopilot only, if this will change in the future I don't know but that is what autopilot currently supports. I'm sure there's another more proper way to implement this edge case but personally I am not too familiar with the codebase here.
Ok, if it's immutable for Autopilot then we should probably remove the diff suppress func entirely for this field and instead add a customize diff that will trigger replacement if this field in particular changes and autopilot is set to true. You can see an example of similar behavior on containerClusterAutopilotCustomizeDiff, and this could potentially be added to that function.
Also, I don't think we want to change behavior on the fields that are sharing this diff suppress func unless we know their behavior.
@maci0, this PR is waiting for action from you. Please address any comments or change requests, or re-request review from a core reviewer if no action is required.

If no action is taken, this PR will be closed in 28 days.
This notification can be disabled with the disable-automatic-closure label.
close in favor of https://github.com/GoogleCloudPlatform/magic-modules/pull/11744