Skip to content
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

Merged
merged 1 commit into from May 26, 2015

Conversation

csrwng
Copy link
Contributor

@csrwng csrwng commented May 21, 2015

Fixes #8535

@csrwng
Copy link
Contributor Author

csrwng commented May 21, 2015

@thockin ptal

@thockin
Copy link
Member

thockin commented May 21, 2015

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]",
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@j3ffml
Copy link
Contributor

j3ffml commented May 21, 2015

LGTM, thanks.

@j3ffml j3ffml added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 21, 2015
@k8s-bot
Copy link

k8s-bot commented May 21, 2015

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.

@dchen1107
Copy link
Member

LGTM Please rebase it so that I can merge, sorry for the inconvenience.

@csrwng
Copy link
Contributor Author

csrwng commented May 22, 2015

rebased

@csrwng
Copy link
Contributor Author

csrwng commented May 26, 2015

@dchen1107 or @jlowdermilk, I've rebased on to the latest master. When you get a chance, can you please merge? Thx much.

@j3ffml
Copy link
Contributor

j3ffml commented May 26, 2015

cc @saad-ali

saad-ali added a commit that referenced this pull request May 26, 2015
Rename 'kubectl log' to 'kubectl logs'
@saad-ali saad-ali merged commit b7e0cc4 into kubernetes:master May 26, 2015
@csrwng csrwng deleted the rename_pod_log branch July 28, 2015 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubectl: alias "logs" to "log" command
7 participants