-
Notifications
You must be signed in to change notification settings - Fork 2.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
Allow removing version from Kubernetes label selectors #11661
Conversation
@iocanel can you take a look please? |
This needs a rebase. |
Done, @iocanel can you please review? |
@iocanel could you review this one tomorrow? We need it in CR1 IMHO. Thanks. |
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.
We don't need decorator per resource. We can just create a single decorator that will be applied everywhere. Maybe a decorator on ObjectMetaFluent is all we need. An alternative would be on HasMetadataFluent or something
@iocanel note that the selector is different for |
Need to check. |
You are right! Deployment and DeploymentConfig resources are created with their labels set and they are not decorated. Let's keep that for now and I'll raise an issue on decorate side. |
Thanks for checking! So should we put this on hold and wait for the dekorate fix or merge it as is? |
Depends on how fast we need this to get in. |
It's not super important, just a nice to have |
Then let's fix on decorate and align. |
Closing this one then. |
We'll it's not invalid, it just needs to be updated when we have a new Dekorate release :). So I'll reopen so we can address it for 1.8 |
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.
Once #12160 get's in we should be able to proceed with this one.
The latest dekorate version introduces decorators for adding/removing labels from selectors matchingLabes
.
@iocanel do you want to take over this PR now that dekorate has been updated? You can go ahead and push into it |
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.
Will do!
Thanks! |
a21acc1
to
c32da06
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.
LGTM
Thanks for driving it home @iocanel! |
Fixes: #11070