-
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
feat: support edit set label for labels and not only commonLabels #4478
Conversation
|
Welcome @gaeljw! |
Hi @gaeljw. 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. |
/assign |
1 similar comment
/assign |
/ok-to-test |
1 similar comment
/ok-to-test |
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.
A couple more things that this PR needs to go in:
-
The same change should be made to
kustomize edit add label
andkustomize edit remove label
-
I pulled your branch and ran
kustomize edit set label foo:bar --fields=labels
, which gave me:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
foo: bar
labels:
- {}
- pairs:
foo: bar
This needs to be fixed before we can merge this PR. You can try this out yourself by going into the kustomize/kustomize
directory and running go install .
to build your branch.
8612cc4
to
e81975a
Compare
/reopen |
@gaeljw: Reopened 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. |
/remove-lifecycle rotten |
I'd love to see this PR got merged soon. May I ask which is blocking this? |
Any updates? |
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 |
/remove-lifecycle stale |
Hi there, @gaeljw! Are you still interested in contributing this feature? If yes, could you please rebase this branch and resolve the existing conflicts? |
I don't have much time to rebase my work and fix the conflicts currently. If anyone else wants to take over, I don't mind at all. Given that I know nothing about Go, this will probably more efficient anyway. |
I see. Appreciate the response 🙏🏼 |
Hi there! I was looking arround for this feature and looked to rebase the PR, but i found that some similar feature was already introduced by #4486. How can i help on this? I suppose thats better to keep already merged flags but i think it's better what this PR proposes (
|
Hi there, @cunyat! Sorry for my late response! If you're interested in contributing the feature yourself, you can open a PR against this repository with your proposed changes, mentioning the referenced issue in your pull request description. |
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 |
The Kubernetes project currently lacks enough active 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 rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: 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-sigs/prow repository. |
/reopen |
@cunyat: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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. |
Aims to solves #3866
Please review with care as I've never written Go before!
Also unit tests doesn't actually go through the command parsing so there might be issues on this part. I don't know how to test a whole command. If you do, please feel free to complete.