mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Fix some typos in third party resource printing
This commit is contained in:
parent
d8c1a9a4fb
commit
59bd1d24a2
@ -1335,10 +1335,10 @@ func printThirdPartyResource(rsrc *extensions.ThirdPartyResource, w io.Writer, w
|
||||
versions := make([]string, len(rsrc.Versions))
|
||||
for ix := range rsrc.Versions {
|
||||
version := &rsrc.Versions[ix]
|
||||
versions[ix] = fmt.Sprint("%s/%s", version.APIGroup, version.Name)
|
||||
versions[ix] = fmt.Sprintf("%s/%s", version.APIGroup, version.Name)
|
||||
}
|
||||
versionsString := strings.Join(versions, ",")
|
||||
if _, err := fmt.Fprintf(w, "%s\t%s\t%s", rsrc.Name, rsrc.Description, versionsString); err != nil {
|
||||
if _, err := fmt.Fprintf(w, "%s\t%s\t%s\n", rsrc.Name, rsrc.Description, versionsString); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user