-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 kustomize CLI to add/set labels with includeSelectors: false #4746
Comments
I was say this is a bug because running labels:
- includeSelectors: false
pairs:
version: foo produces: labels:
- includeSelectors: false
pairs:
version: foo
commonLabels:
version: bar which is of course invalid:
|
Those look to cover what I am asking for, yes. |
/triage accepted I will add reviewing the above PRs to my TODO list. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
@natasha41575 any chance you're able to prioritize those PRs? i went hunting for why the CLI did not support editing if there is anything that either PR needs changed that either author is unwilling or unavailable to change, i will happily take over. this is critical functionality for setting labels with dynamic values. |
still looking forward for this to get implemented |
/assign
#4486 has since been merged, but I don't think it's been released yet.
|
/lifecycle frozen |
It works for adding completely new label, but I don't see how to edit existing one. labels:
- pairs:
version: "1"
results in: labels:
- pairs:
version: "1"
- pairs:
version: "2"
p.s. neither |
Is your feature request related to a problem? Please describe.
Currently,
kustomize edit add/set label
only supportscommonLabels
The introduction of the new label without selectors was intended to fix issues with dynamic labeling changes. However, I don't see a way to dynamically set these labels without selectors with the current CLI.
For example, I cannot dynamically update a
version
label via CI/CD, due tocommonLabels
updating selectors which are immutable.Describe the solution you'd like
Update
kustomize edit add/set label
to use the new label format with a flag to enable/disable selectorsDescribe alternatives you've considered
We are currently using a var in the labels which pulls from a version annotation, and using commonAnnotations instead to set the version dynamically, but vars are planned to be deprecated.
The text was updated successfully, but these errors were encountered: