Skip to content

cli: reorganise diagnostics subcommand#5205

Merged
Pothulapati merged 12 commits intomainfrom
tarun/cli-diagnostics
Feb 25, 2021
Merged

cli: reorganise diagnostics subcommand#5205
Pothulapati merged 12 commits intomainfrom
tarun/cli-diagnostics

Conversation

@Pothulapati
Copy link
Contributor

@Pothulapati Pothulapati commented Nov 10, 2020

Fixes #5192, #5193

This PR moves metrics, diagnostics(which prints out metrics of
control-plane components), endpoints and install-sp into a new diagnostics
subcommand.

Signed-off-by: Tarun Pothulapati tarunpothulapati@outlook.com

Fixes #5192

This PR moves `metrics`, `diagnostics`(which prints out metrics of
control-plane components) and `endpoints` into a new `diagnostics`
subcommand.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
@Pothulapati Pothulapati requested a review from a team as a code owner November 10, 2020 12:48
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Pothulapati and others added 2 commits November 12, 2020 12:49
better descriotion

Co-authored-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
@Pothulapati Pothulapati marked this pull request as draft December 4, 2020 07:05
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
@Pothulapati Pothulapati marked this pull request as ready for review February 22, 2021 16:38
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
@kleimkuhler kleimkuhler self-requested a review February 22, 2021 17:00
@Pothulapati Pothulapati requested a review from adleong February 22, 2021 17:19
Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
diagnosticsCmd.AddCommand(newCmdControllerMetrics())
diagnosticsCmd.AddCommand(newCmdEndpoints())
diagnosticsCmd.AddCommand(newCmdMetrics())
diagnosticsCmd.AddCommand(newCmdInstallSP())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call the install-sp something else? As its a bit confusing as this installs service profiles for the control-plane components and not the service profiles crds itself

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a better suggestion for the name of this.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
diagnosticsCmd.AddCommand(newCmdControllerMetrics())
diagnosticsCmd.AddCommand(newCmdEndpoints())
diagnosticsCmd.AddCommand(newCmdMetrics())
diagnosticsCmd.AddCommand(newCmdInstallSP())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a better suggestion for the name of this.


This command provides subcommands to diagnose the functionality of Linkerd.`,
Example: ` # Get control-plane component metrics
linkerd diagnostics cp-metrics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cp-metrics doesn't seem like it's a valid abbreviation for this command.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Copy link
Contributor

@kleimkuhler kleimkuhler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. There are some doc updates you should change before merging, but changes make sense and work as expected.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
@Pothulapati Pothulapati merged commit 1e57221 into main Feb 25, 2021
@Pothulapati Pothulapati deleted the tarun/cli-diagnostics branch February 25, 2021 07:23
jijeesh pushed a commit to jijeesh/linkerd2 that referenced this pull request Mar 23, 2021
* cli: reorganise diagnostics subcommand

Fixes linkerd#5192, linkerd#5193

This PR moves `metrics`, `diagnostics`(which prints out metrics of
control-plane components), `endpoints` and `install-sp` into a new `diagnostics`
subcommand.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Jijeesh <jijeesh.ka@gmail.com>
jijeesh pushed a commit to jijeesh/linkerd2 that referenced this pull request Apr 21, 2021
* cli: reorganise diagnostics subcommand

Fixes linkerd#5192, linkerd#5193

This PR moves `metrics`, `diagnostics`(which prints out metrics of
control-plane components), `endpoints` and `install-sp` into a new `diagnostics`
subcommand.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Signed-off-by: Jijeesh <jijeesh.ka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: Reorganize diagnostic subcommand(s)

3 participants