Skip to content

Commit

Permalink
Merge pull request kubernetes#39359 from tianshapjq/add-top-specifica…
Browse files Browse the repository at this point in the history
…tion

Automatic merge from submit-queue

add some specifications on the top command

**What this PR does / why we need it**:
the top command is available when heapster works fine on the server, but the specifications doesn't mention about this. So I added some specifications here.
  • Loading branch information
Kubernetes Submit Queue authored Jan 4, 2017
2 parents ee03b9b + 2c2dba6 commit 17f8d82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/kubectl/cmd/top.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ var (
topLong = templates.LongDesc(`
Display Resource (CPU/Memory/Storage) 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.
This command requires Heapster to be correctly configured and working on the server. `)
)

func NewCmdTop(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "top",
Short: "Display Resource (CPU/Memory/Storage) usage",
Short: "Display Resource (CPU/Memory/Storage) usage.",
Long: topLong,
Run: cmdutil.DefaultSubCommandRun(errOut),
}
Expand Down

0 comments on commit 17f8d82

Please sign in to comment.