-
Notifications
You must be signed in to change notification settings - Fork 39.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
use server-side printing in kubectl get -w
#76161
Conversation
324ccd0
to
2a56631
Compare
Warn if sorting and watching are requested together
6b08f38
to
53e55d3
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt 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 |
/retest |
kubectl get -w
kubectl get -w
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
if o.IsHumanReadablePrinter { | ||
// printing always takes the internal version, but the watch event uses externals | ||
if o.IsHumanReadablePrinter && objToPrint.GetObjectKind().GroupVersionKind().GroupKind() != tableGK { | ||
// printing anything other than tables always takes the internal version, but the watch event uses externals |
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.
reminds me for v1 we'll need two versions of this, beta1 and v1
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.
this one in particular just checks group/kind, so it's version neutral... places where we check for *metav1beta1.Table will definitely need to add a switch
looks reasonable, didn't see anything objectionable so far |
/assign @smarterclayton |
/lgtm |
@liggitt: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Requests and handles server-side print events for
kubectl get -w
Which issue(s) this PR fixes:
Fixes #66538
Does this PR introduce a user-facing change?:
/sig cli
/cc @smarterclayton @seans3