-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Conversation
Running: ./hack/verify-gendocs.sh fails - can you please fix it? |
return strings.Join(apiVersions.Versions, ",") | ||
} | ||
|
||
func (apiVersions APIVersions) GoString() string { |
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 seems redundant with the above. Also I'm not seeing where either of these are used...
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.
@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]}
`
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.
Ah, thanks for explanation. That does look better.
Minor nit, otherwise lgtm. |
add get available versions commmand
Merged. Thanks, @you-n-g! |
command
kubectl apiversions
will produce results below nowrefer to #5275