mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Wrong command (kubectl top) description (#99060)
* Update top.go * Update top_pod.go * Update top_node.go
This commit is contained in:
parent
72d92159bc
commit
b7613c4315
@ -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),
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user