-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Autopilot Suppressed Diff Prevents using additive_vpc_scope_dns_domain
#11744
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @rileykarson, 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. |
we had a conversation regarding this in this PR also: #11562 |
|
9102f2e
to
b483e90
Compare
Thanks for taking a look @maci0 ! Previous discussion looks good and all makes sense. What I've done (and hopefully haven't overstepped anything here) is keep my previous change of moving the other settings to be suppressed except for |
@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
@slevenick could you take a look at this one? |
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.
Running tests- I think this change looks reasonable, will LGTM+merge after success.
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Breaking Change(s) DetectedThe following breaking change(s) were detected within your pull request.
If you believe this detection to be incorrect please raise the concern with your reviewer. |
Tests analyticsTotal tests: 212 Click here to see the affected service packages
Action takenFound 14 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
/gcbrun Hmm- we shouldn't have hit quotas there. Weird. Maybe other runs going on at the same time. |
Thanks @rileykarson, I'm not sure if this would be considered a breaking change as it's an optional field and the diff suppress only affected autopilot clusters. But I could be missing something. |
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.
Yeah, I was looking into that in old test logs. Forgot I had to retrigger the tests (which also would have caught it).
See specific reason I don't think we can make this change as-is inline.
@@ -2129,33 +2129,35 @@ func ResourceContainerCluster() *schema.Resource { | |||
Type: schema.TypeList, | |||
Optional: true, | |||
MaxItems: 1, | |||
DiffSuppressFunc: suppressDiffForAutopilot, |
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.
Ah, this ends up being a breaking change in practice. Autopilot clusters that don't set a value at all get this back in the response:
"dnsConfig": {
"clusterDns": "CLOUD_DNS",
"clusterDnsScope": "CLUSTER_SCOPE",
"clusterDnsDomain": "cluster.local"
},
Terraform will see a diff on that by removing the DSF on the top-level field, even though the subfields will be supressed. If there was not a default value for the block this would be safe.
@EmileHofsink, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
@EmileHofsink, this PR is waiting for action from you. If no action is taken, this PR will be closed in 14 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
@EmileHofsink, this PR is waiting for action from you. If no action is taken, this PR will be closed in 2 weekdays. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
@EmileHofsink, this PR is being closed due to inactivity. |
I've just run into this issue and am unable to create an autopilot cluster with additive_vpc_scope_dns_domain. Is there another issue or PR I'm missing? |
There is no other PR for this currently. This one was closed due to inactivity and breaking some of the tests. |
Currently when creating an Autopilot Cluster in Terraform it is not possible to use
additive_vpc_scope_dns_domain
withindns_config
, while this feature is supported by the console and API currently. This looks like it is due to the suppressed diff configuration for Autopilot.To adjust for this I have moved the suppressed diff configuration from the top level
dns_config
block to just apply to the elements that are unchangeable for Autopilot.Release Note Template for Downstream PRs (will be copied)