-
Notifications
You must be signed in to change notification settings - Fork 431
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
ensure AKS immutable configuration has webhook enforcement #2795
ensure AKS immutable configuration has webhook enforcement #2795
Conversation
@jackfrancis: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
||
// EnsureStringSlicesAreEquivalent returns if two string slices have equal lengths, | ||
// and that they have the exact same items; it does not enforce strict ordering of items. | ||
func EnsureStringSlicesAreEquivalent(a []string, b []string) bool { |
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.
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
Nice refactoring! This is simpler and more readable by far.
I labeled this Unless we hear from folks who are running into these edge cases in the wild. Thoughts @mboersma @CecileRobertMichon @nojnhuh ? |
Makes sense to me. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackfrancis The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it:
This PR replaces a few, one-off validation implementations to re-use common funcs instead.
More importantly, the following
AzureManagedControlPlane
properties have been fixed for strict immutability as according the requirements of the AKS API for those properties:Spec.SSHPublicKey
Spec.DNSServiceIP
Spec.NetworkPlugin
Spec.NetworkPolicy
Spec.LoadBalancerSKU
And the following
AzureManagedMachinePool
properties as well:Spec.OSDiskSizeGB
Spec.MaxPods
Spec.OsDiskType
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: