-
Notifications
You must be signed in to change notification settings - Fork 247
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
Use shorter label namespace #881
Conversation
Hi @fmuyassarov. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
667ce15
to
4cd7266
Compare
/cc @marquiz Sorry to bother again :) |
Sorry, haven't had time to concentrate on this. Just some quick thoughts below. The details and corner cases might get hairier than expected. If we want to do this, I think we need to think about a transition plan from long to short labels. I.e. have a way to not break existing applications. This would probably mean the possibility to have both long and short labels turned on at the same time. Then, after apps have been migrated long labels could be turned off 🤔 Another consideration is that in the code cleaning up old labels we would need to take care about both the long and short labels (I think). And the (still experimental) extended resources should be handled, too. /ok-to-test |
This is a breaking change, and usually in k8s for such a change it takes ~3-4 releases to remove a feature. Example: rename "node-role.kubernetes.io/master" For example, Release - v0.12.X
Release - v0.13.X
Release - v0.14.X
Release - v0.15.X
I'm not sure about the estimated time between MINOR releases in NFD project, but if you think it is too short that we take above steps in every MINOR release, then of course we can extend it. And actually better if we get users feedback on that. |
Yeah, along those lines, I guess. I had something similar in my mind. Do transition over several releases and we can also back off if it turns out to be too much of an hassle 😅 |
4cd7266
to
082a86a
Compare
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
082a86a
to
3ebde24
Compare
Rebased |
3ebde24
to
dcc240a
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fmuyassarov The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Feruzjon Muyassarov <[email protected]>
Signed-off-by: Feruzjon Muyassarov <[email protected]>
dcc240a
to
18ef4e7
Compare
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 @fmuyassarov for working on this.
I think there's more things to do here. At least:
- Deletion of labels: labels created by NFD are stored in the
feature-labels
annotation. When deleting old labels we must delete labels from both the long and short ns. - Allowed namespaces: both the long and short should be allowed independent of what is enabled for the default labels. People might have rules creating labels in the old namespace and we don't want to break those. Don't know if we should have some automation to convert/duplicate those into the shorter ns version 🤔
- I think we need a bit more documentation, even at this phase. E.g. some notes in the docs where
feature.node.kubernetes.io
namespace is mentioned in the docs (likedocs/get-started/features.md
)
flagset.StringVar(&args.NsFormat, "label-ns", "legacy", | ||
"Feature label namespace format. By default set to legacy.") |
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.
I think we need the possibility to have both short and long turned on at the same time 🤔
One option is to make this flag tri-state, i.e. smth like -label-ns={legacy,short,both}
. If keeping the flag as string parameter we need to do input validation of it.
Another way could be having separate bool flags, i.e. smth like -label-ns-legacy
and -label-ns-short
. In this case we probably want to check that at least one of them is turned on.
// ProfileLabelNs is the namespace for profile labels | ||
ProfileLabelNs = "profile.node.kubernetes.io" |
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.
The profile ns should switch to a shorter version, too
@fmuyassarov: PR needs rebase. 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. |
PING this PR alive? |
Not at the moment. But I plan to update it hopefully this week. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@fmuyassarov PING this PR alive? |
Hi @ArangoGutierrez. Um, it is almost dead :) Sorry that could not come to it before. But I'm willing to give it a time and get it done. |
/remove-lifecycle stale |
I've started to think if we really want/need this at all. I'm not sure it's worth all the hassle, especially wrt. to breaking the "user interface", i.e. changing all labels. After thinking it again, I don't think |
yeah, that's one of the reasons I didn't have a motivation to finish this work, because as we discussed earlier f2f, I was also not sure if we really need it. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Close? |
for now at least yes, |
@fmuyassarov: Closed this PR. 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. |
Fixes: #778