-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Rename 'kubectl log' to 'kubectl logs' #8634
Conversation
@thockin ptal |
LGTM, though I am not deeply familiar with kubectl infra. @jlowdermilk |
@@ -63,7 +63,7 @@ func selectContainer(pod *api.Pod, in io.Reader, out io.Writer) string { | |||
// NewCmdLog creates a new pod log command | |||
func NewCmdLog(f *cmdutil.Factory, out io.Writer) *cobra.Command { | |||
cmd := &cobra.Command{ | |||
Use: "log [-f] [-p] POD [CONTAINER]", | |||
Use: "logs [-f] [-p] POD [CONTAINER]", |
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.
With command renames, we've been keeping the old one as an alias (with a deprecation warning) to avoid breaking existing uses. See rollingupdate.go for an example that does 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.
Fixed
LGTM, thanks. |
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain @ixdy. |
LGTM Please rebase it so that I can merge, sorry for the inconvenience. |
rebased |
@dchen1107 or @jlowdermilk, I've rebased on to the latest master. When you get a chance, can you please merge? Thx much. |
cc @saad-ali |
Rename 'kubectl log' to 'kubectl logs'
Fixes #8535