-
Notifications
You must be signed in to change notification settings - Fork 286
Adding labels to spec.service #1821
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
Comments
There's one more way to set the service labels, which technically allows you to keep labels and annotations together:
A cluster deployed like that will set the I'm not against adding |
Oh yeah. As you said - redundant, but harmless. I think I could contribute this feature. I'll have a look at this in the next few weeks. |
Hi |
@EladAviczer if you mean you want to submit a PR - by all means, go ahead. |
Is your feature request related to a problem? Please describe.
I need to attach labels to my service for cilium to do it's job. Because there is only a
spec.service.annotations
i have to set this viaspec.override.service.metadata.labels
Describe the solution you'd like
I'd like to be able to set labels the same way we do it for annotations via
spec.service.labels
Describe alternatives you've considered
There's the workaround with the override function, but this isn't the most beautiful solution, if annotations and labels cannot be defined in the same place
Additional context
I know that there was an issue with pods and labels: #442
Please correct me, but this shouldn't be an issue here, right?
The text was updated successfully, but these errors were encountered: