-
Notifications
You must be signed in to change notification settings - Fork 40k
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
fix annotate.go single resource check #29319
fix annotate.go single resource check #29319
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
4 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@adohe would you be willing to review this? |
Ok, I will review this today. |
@juanvallejo I think the |
Hm, I'm not sure what you mean by this.
It is to keep the same pattern (complete, validate, run) used in some other commands |
@juanvallejo for simplify, I mean:
Ok, we keep this and follow this pattern. |
@adohe Sounds good, I have gone ahead and simplified the |
@juanvallejo you ever update this? It seems nothing changed. |
feeeaf6
to
1e71359
Compare
@adohe Sorry about that, forgot to push latest changes |
LGTM. Thanks @juanvallejo |
@adohe Done. Thanks. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
ok to test. @pwittrock please help remove |
ok to test |
@adohe Alright, I think it is finally going to go through now :) |
GCE e2e build/test passed for commit 1e71359. |
Automatic merge from submit-queue |
When using
kubectl annotate
with a--resource-version
on a resource, such askubectl annotate pod <pod_name> --resource-version=1820 description='myannotation'
, the command fails with the error:error: --resource-version may only be used with a single resource
.Upon printing the output of
resources
that the annotate command receives from cli args, it prints:Resources:[pod <pod_name>]
. In other words, it treats the name of the resource as a second resource. This PR addresses this issue by using the resource builderSingular
flag to determine if only a single resource was passed.