-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support new topology/zones labels #70
Support new topology/zones labels #70
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.
Thanks for the PR @prashanth26 .
I think, buildGenericLabels
needs to be adapted as well here: https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/cloudprovider/mcm/mcm_manager.go#L593.
Essentially, mcm-provider fetches the zone "value" from the MachineClass, and builds the node-object, where "key" of the zone-label on the node, should also be adapted for both topology/failure-domain. Both variations could be kept, for backward compatibility, you can take a call on that.
Also, can you please the test exact end-user case with this change, to ensure it solves the issue as expected?
If I am not wrong, with this change, where both variations of the label are kept on the node, the original issue should be resolved, but I'd really suggest testing it once.
|
Nice catch @hardikdr . Thanks for this. I shall update it to have both labels. Probably will also look into the
Yes, hardik. I will need the changes on
Yes shall do that. Thanks for this review. Appreciate it. :) |
// labelFailureDomainZone is the deprecated label for failure domain zone used by kubernetes.io | ||
// It has been deprecated in favor of (below) topology.kubernetes.io/zone label | ||
// See: https://v1-18.docs.kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/#failure-domainbetakubernetesiozone | ||
labelFailureDomainZone = "failure-domain.beta.kubernetes.io/zone" |
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.
One minor comment, with rebase these labels now can be fetched from apiv1 "k8s.io/api/core/v1"
as well.
If the changes of the "buildGenericLabels" are also included, the changes at extension might not be needed to test it out, the extension should always be updated though. |
The old failure-domain label was deprecated in favour of topology/zone labels. This PR addresses this issue. See: https://v1-18.docs.kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/#failure-domainbetakubernetesiozone
2cd801c
to
e3943ff
Compare
Sure, thank you. |
Just tested these changes locally. It works backward compatible with both the deprecated and current zone and region labels. I think for the first cut let's just release the @hardikdr - Let me know if it looks good to merge. |
The old failure-domain label was deprecated in favour of topology/zone labels. This PR addresses this issue.
See: https://v1-18.docs.kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/#failure-domainbetakubernetesiozone
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #68
Special notes for your reviewer:
Release note: