Wrong command (kubectl top) description (#99060)

* Update top.go

* Update top_pod.go

* Update top_node.go
This commit is contained in:
Heng WU 2021-03-08 14:07:00 -06:00 committed by GitHub
parent 72d92159bc
commit b7613c4315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ var (
"v1beta1",
}
topLong = templates.LongDesc(i18n.T(`
Display Resource (CPU/Memory/Storage) usage.
Display Resource (CPU/Memory) usage.
The top command allows you to see the resource consumption for nodes or pods.
@ -47,7 +47,7 @@ var (
func NewCmdTop(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
cmd := &cobra.Command{
Use: "top",
Short: i18n.T("Display Resource (CPU/Memory/Storage) usage."),
Short: i18n.T("Display Resource (CPU/Memory) usage."),
Long: topLong,
Run: cmdutil.DefaultSubCommandRun(streams.ErrOut),
}

View File

@ -55,7 +55,7 @@ type TopNodeOptions struct {
var (
topNodeLong = templates.LongDesc(i18n.T(`
Display Resource (CPU/Memory/Storage) usage of nodes.
Display Resource (CPU/Memory) usage of nodes.
The top-node command allows you to see the resource consumption of nodes.`))
@ -77,7 +77,7 @@ func NewCmdTopNode(f cmdutil.Factory, o *TopNodeOptions, streams genericclioptio
cmd := &cobra.Command{
Use: "node [NAME | -l label]",
DisableFlagsInUseLine: true,
Short: i18n.T("Display Resource (CPU/Memory/Storage) usage of nodes"),
Short: i18n.T("Display Resource (CPU/Memory) usage of nodes"),
Long: topNodeLong,
Example: topNodeExample,
Run: func(cmd *cobra.Command, args []string) {

View File

@ -62,7 +62,7 @@ const metricsCreationDelay = 2 * time.Minute
var (
topPodLong = templates.LongDesc(i18n.T(`
Display Resource (CPU/Memory/Storage) usage of pods.
Display Resource (CPU/Memory) usage of pods.
The 'top pod' command allows you to see the resource consumption of pods.
@ -93,7 +93,7 @@ func NewCmdTopPod(f cmdutil.Factory, o *TopPodOptions, streams genericclioptions
cmd := &cobra.Command{
Use: "pod [NAME | -l label]",
DisableFlagsInUseLine: true,
Short: i18n.T("Display Resource (CPU/Memory/Storage) usage of pods"),
Short: i18n.T("Display Resource (CPU/Memory) usage of pods"),
Long: topPodLong,
Example: topPodExample,
Run: func(cmd *cobra.Command, args []string) {