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 get available versions commmand #5543

Merged
merged 2 commits into from
Mar 18, 2015
Merged

Conversation

you-n-g
Copy link
Contributor

@you-n-g you-n-g commented Mar 17, 2015

command kubectl apiversions will produce results below now

Available Server Api Versions: v1beta1,v1beta2,v1beta3

refer to #5275

@wojtek-t
Copy link
Member

Running: ./hack/verify-gendocs.sh fails - can you please fix it?

@j3ffml j3ffml self-assigned this Mar 17, 2015
return strings.Join(apiVersions.Versions, ",")
}

func (apiVersions APIVersions) GoString() string {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems redundant with the above. Also I'm not seeing where either of these are used...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jlowdermilk
GoString is called here
this is a little more friendly

Otherwise it will print the APIVersions struct literally maybe like unversioned.APIVersions{Versions:[v1beta1 v1beta2 v1beta3]}
`

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, thanks for explanation. That does look better.

@j3ffml
Copy link
Contributor

j3ffml commented Mar 17, 2015

Minor nit, otherwise lgtm.

@j3ffml j3ffml added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 18, 2015
j3ffml added a commit that referenced this pull request Mar 18, 2015
add get available versions commmand
@j3ffml j3ffml merged commit faab509 into kubernetes:master Mar 18, 2015
@j3ffml
Copy link
Contributor

j3ffml commented Mar 18, 2015

Merged. Thanks, @you-n-g!

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.

4 participants