-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Ability to set create true/false on label #5445
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Hello there, @eduanb! 👋 The built-in transformer labels:
- pairs:
someName: someValue
fields:
- path: spec/selector/matchLabels
kind: PodDisruptionBudget
create: true Would you be able to give it a try and confirm whether this works for your use case? |
/kind support |
/remove-kind feature |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues 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. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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-sigs/prow repository. |
Eschewed features
What would you like to have added?
When specifying a label/commonLabel I would like to override whether a specific path should be created.
Seems like commonLabel might be removed, so makes sense to add it to labels which is already more customizable.
My rough first idea:
Why is this needed?
I ran into exactly this issue #2716
For some reason, the create is hard-coded to be false for DPB selectors.
For my use case, I would like it true, but other users might prefer false. This could be the case for all the labels.
Additionally, if more paths are needed in the future, a user can configure it without Kustomize explicitly adding support.
Can you accomplish the motivating task without this feature, and if so, how?
A patch can accomplish it. However, PDBs are fairly small manifests, so a patch is almost the same as recreating the whole manifest over again.
What other solutions have you considered?
A patch which does work but that makes the overall yaml more when using Kustomize than without it.
Anything else we should know?
No response
Feature ownership
The text was updated successfully, but these errors were encountered: