-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Support kubectl annotate --list option #92576
Support kubectl annotate --list option #92576
Conversation
ba3bf82
to
d0d8f93
Compare
/retest |
d0d8f93
to
ca1d598
Compare
/retest |
if err != nil { | ||
return err | ||
} | ||
fmt.Fprintf(o.ErrOut, "Listing annotations for %s.%s/%s:\n", gvks[0].Kind, gvks[0].Group, info.Name) |
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.
Not a huge fan of using stderr for informational messages, but I know this is the same way label --list
does it.
I'll leave this up to @soltysh to comment on, but since it is done the same way in label --list
, I'm fine with either leaving it this way, or fixing it in both places.
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.
Brian is reading my mind - please change it to StdOut
especially that's expected, can be done in a followup.
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.
Thanks, Done in #92691 :)
/lgtm With one potential comment, but I would be fine if it got merged like this. |
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.
/approve
/lgtm
/priority backlog
/kind bug
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: soltysh, zhouya0 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Support
kubectl annotate --list
option which synchronizes the behavior withkubectl label --list
.Which issue(s) this PR fixes:
Fixes #92499
Special notes for your reviewer:
/cc @soltysh
/cc @brianpursley
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: