-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix: update node annotation used to limit log spam with valid key #6301
fix: update node annotation used to limit log spam with valid key #6301
Conversation
|
Welcome @brydoncheyney! |
OH, grumble. I was thinking the tags got translated into annotations on the node but clearly not. @gjtempleton can I can a second opinion on this? I feel less confident in my decision-making abilities now, lol |
DNS regex validation check in kubernetes allows only a single Seems like an easy to trip on thing. |
The annotation key/value format is well documented - https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - but I think the confusion here is easy to understand when you consider the AWS tags used by the cluster autoscaler, which do not follow the same conventions and can contain arbitrary characters not support by k8s annotations/labels. tldr: easy mistake to make |
I will take a look if you don't mind @drmorr0 (we can get Guy to do the final review). /assign @vadasambar |
LGTM overall. Thank you for the PR. I will do one more pass tomorrow. |
/lgtm |
@gjtempleton need your approval 🙏 |
Thanks for picking this up, agreed, on first pass my AWS tags brain couldn't see the problem. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brydoncheyney, gjtempleton, vadasambar 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
#6265 introduced the ability for users to apply an annotation to cluster Nodes that are not managed by the autoscaler, reducing the amount of "spam" messages logged by the controller.
However, the chosen annotation key
k8s.io/cluster-autoscaler/enabled
is not a valid identifier - https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - which expects only a single DNS prefix.Attempting to manually add this annotation to an existing node will fail -
Note that the use of the
k8s.io/cluster-autoscaler/enabled
tag is valid within AWS.This PR uses a valid identifier
k8s.io/cluster-autoscaler-enabled
Which issue(s) this PR fixes: 6300
Fixes #6300
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: