mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +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",
|
"v1beta1",
|
||||||
}
|
}
|
||||||
topLong = templates.LongDesc(i18n.T(`
|
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.
|
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 {
|
func NewCmdTop(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "top",
|
Use: "top",
|
||||||
Short: i18n.T("Display Resource (CPU/Memory/Storage) usage."),
|
Short: i18n.T("Display Resource (CPU/Memory) usage."),
|
||||||
Long: topLong,
|
Long: topLong,
|
||||||
Run: cmdutil.DefaultSubCommandRun(streams.ErrOut),
|
Run: cmdutil.DefaultSubCommandRun(streams.ErrOut),
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ type TopNodeOptions struct {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
topNodeLong = templates.LongDesc(i18n.T(`
|
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.`))
|
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{
|
cmd := &cobra.Command{
|
||||||
Use: "node [NAME | -l label]",
|
Use: "node [NAME | -l label]",
|
||||||
DisableFlagsInUseLine: true,
|
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,
|
Long: topNodeLong,
|
||||||
Example: topNodeExample,
|
Example: topNodeExample,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
@ -62,7 +62,7 @@ const metricsCreationDelay = 2 * time.Minute
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
topPodLong = templates.LongDesc(i18n.T(`
|
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.
|
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{
|
cmd := &cobra.Command{
|
||||||
Use: "pod [NAME | -l label]",
|
Use: "pod [NAME | -l label]",
|
||||||
DisableFlagsInUseLine: true,
|
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,
|
Long: topPodLong,
|
||||||
Example: topPodExample,
|
Example: topPodExample,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user