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

Add DaemonSets and Deployments to valid resources list in kubectl. #21509

Conversation

madhusudancs
Copy link
Contributor

@bgrant0607 Should there be a short form for Deployments? I thought about 'dep', but that sounds more like dependencies.

@madhusudancs madhusudancs added this to the v1.2 milestone Feb 18, 2016
@k8s-github-robot
Copy link

Labelling this PR as size/XS

@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 18, 2016
@@ -112,6 +112,8 @@ __custom_func() {
`
valid_resources = `Valid resource types include:
* componentstatuses (aka 'cs')
* daemonsets (aka 'ds')
* deployments
Copy link
Member

Choose a reason for hiding this comment

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

Thanks. Could you also add an abbreviation for deployments? I propose 'dep'.

cc @Kargakis @janetkuo @mqliang

expandResourceShortcut:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/kubectl.go#L97

Really, we should autogenerate this documentation and that map from the same source. We can do that later, but how about adding comments to both places? I guess here it would have to go before or after this string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bgrant0607 Done. PTAL.

@bgrant0607 bgrant0607 assigned bgrant0607 and unassigned thockin Feb 18, 2016
@madhusudancs madhusudancs force-pushed the kubectl-get-list-deployments-daemonsets branch from 95ad538 to f9c9cf4 Compare February 18, 2016 23:26
@k8s-bot
Copy link

k8s-bot commented Feb 18, 2016

GCE e2e build/test failed for commit 95ad5380afd68abb24f2a3768573e3cc62c2ad98.

@k8s-bot
Copy link

k8s-bot commented Feb 18, 2016

GCE e2e build/test failed for commit f9c9cf430ef38b69f8654b98ac8f0eea135809f7.

@bgrant0607
Copy link
Member

LGTM

@bgrant0607 bgrant0607 added lgtm "Looks good to me", indicates that a PR is ready to be merged. area/kubectl labels Feb 19, 2016
@bgrant0607
Copy link
Member

Regenerate docs.

@bgrant0607
Copy link
Member

Reapply lgtm after you do that.

@madhusudancs madhusudancs force-pushed the kubectl-get-list-deployments-daemonsets branch from f9c9cf4 to e7f4d3a Compare February 19, 2016 04:39
@k8s-github-robot
Copy link

PR changed after LGTM, removing LGTM.

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 19, 2016
@madhusudancs
Copy link
Contributor Author

@bgrant0607 ran update scripts and it generated nothing. Tried it again now, nothing.

Just pushed the rebased commit. Reapplying the label.

@madhusudancs madhusudancs added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 19, 2016
@bgrant0607
Copy link
Member

Thanks @madhusudancs. Maybe something else was wrong.

@k8s-bot
Copy link

k8s-bot commented Feb 19, 2016

GCE e2e test build/test passed for commit e7f4d3ac9bec5b0c48249b05e037876b267bd03d.

@madhusudancs
Copy link
Contributor Author

@bgrant0607 yeah.

@k8s-bot test this issue: #IGNORE

@k8s-bot
Copy link

k8s-bot commented Feb 19, 2016

GCE e2e test build/test passed for commit e7f4d3ac9bec5b0c48249b05e037876b267bd03d.

@0xmichalis
Copy link
Contributor

cc: @ironcladlou @smarterclayton

@0xmichalis
Copy link
Contributor

"dep" can also be "dependency" but I cannot think of a better abbreviation

@mqliang
Copy link
Contributor

mqliang commented Feb 19, 2016

How about "dp"?

@smarterclayton
Copy link
Contributor

Let's not abbreviate right now - just add deployments, and we can
abbreviate later (we already decided that for other resources).
Abbreviations are an API and this is not the time to be adding new apis.

On Fri, Feb 19, 2016 at 4:35 AM, Liang Mingqiang notifications@github.com
wrote:

How about "dp"?


Reply to this email directly or view it on GitHub
#21509 (comment)
.

@k8s-github-robot
Copy link

@k8s-bot test this

Tests are more than 48 hours old. Re-running tests.

@k8s-bot
Copy link

k8s-bot commented Feb 21, 2016

GCE e2e build/test failed for commit e7f4d3ac9bec5b0c48249b05e037876b267bd03d.

@bgrant0607 bgrant0607 removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 22, 2016
@bgrant0607
Copy link
Member

Ok, I'm fine with that. @madhusudancs please remove the abbreviation for deployments. Sorry.

@ghodss
Copy link
Contributor

ghodss commented Feb 22, 2016

Given the length of the term "deployment," and the fact that we're going to be moving everything over to deployments on 1.2 and will be doing a lot of work with them with kubectl, I know it would be extremely helpful to us to add an abbreviation (I vote for dp). Just my $.02.

@smarterclayton
Copy link
Contributor

smarterclayton commented Feb 22, 2016 via email

@kelseyhightower
Copy link
Contributor

I agree with @smarterclayton on this one. Just improving the help output to show deployments and daemonset as a valid object makes my life easier and will do the same for users.

Regarding the abbreviation I think we will do a better job if we look at the current set and try to make things consistent.

@madhusudancs madhusudancs force-pushed the kubectl-get-list-deployments-daemonsets branch from e7f4d3a to 781480d Compare February 23, 2016 19:23
@madhusudancs
Copy link
Contributor Author

@bgrant0607 @smarterclayton Removed the abbreviation for deployments. PTAL.

@k8s-bot
Copy link

k8s-bot commented Feb 23, 2016

GCE e2e test build/test passed for commit 781480d.

@bgrant0607
Copy link
Member

LGTM

@bgrant0607 bgrant0607 added lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Feb 23, 2016
@bgrant0607
Copy link
Member

Merging.

bgrant0607 added a commit that referenced this pull request Feb 24, 2016
…nts-daemonsets

Add DaemonSets and Deployments to valid resources list in kubectl.
@bgrant0607 bgrant0607 merged commit 8061489 into kubernetes:master Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kubectl lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.