mirror of https://github.com/linkerd/linkerd2.git
Fix `linkerd check --output` flag description (#11145)
The `linkerd check --output` flag supports 3 formats: `table`, `json`, and `short`. The default `linkerd check` command description incorrectly printed `basic, json, short`. Other extension check commands printed `basic, json`. Modify all check output descriptions to print `table, json, short`. Signed-off-by: Andrew Seigner <siggy@buoyant.io>
This commit is contained in:
parent
95c6c0528f
commit
042c56625a
|
@ -79,7 +79,7 @@ following flags:
|
|||
|
||||
* `--namespace`/`-n`: Namespace to use for –proxy checks (default: all
|
||||
namespaces)
|
||||
* `--output`/`-o`: Output format. One of: table, json
|
||||
* `--output`/`-o`: Output format. One of: table, json, short
|
||||
* `--pre`: Only run pre-installation checks, to determine if the extension can
|
||||
be installed
|
||||
* `--proxy`: Only run data-plane checks, to determine if the data plane is
|
||||
|
|
|
@ -67,7 +67,7 @@ func (options *checkOptions) checkFlagSet() *pflag.FlagSet {
|
|||
|
||||
flags.StringVar(&options.versionOverride, "expected-version", options.versionOverride, "Overrides the version used when checking if Linkerd is running the latest version (mostly for testing)")
|
||||
flags.StringVar(&options.cliVersionOverride, "cli-version-override", "", "Used to override the version of the cli (mostly for testing)")
|
||||
flags.StringVarP(&options.output, "output", "o", options.output, "Output format. One of: basic, json, short")
|
||||
flags.StringVarP(&options.output, "output", "o", options.output, "Output format. One of: table, json, short")
|
||||
flags.DurationVar(&options.wait, "wait", options.wait, "Maximum allowed time for all tests to pass")
|
||||
|
||||
return flags
|
||||
|
|
|
@ -180,7 +180,7 @@ code.`,
|
|||
},
|
||||
}
|
||||
|
||||
cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of: basic, json")
|
||||
cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of: table, json, short")
|
||||
cmd.Flags().DurationVar(&options.wait, "wait", options.wait, "Maximum allowed time for all tests to pass")
|
||||
cmd.Flags().BoolVar(&options.proxy, "proxy", options.proxy, "Also run data-plane checks, to determine if the data plane is healthy")
|
||||
cmd.Flags().StringVarP(&options.namespace, "namespace", "n", options.namespace, "Namespace to use for --proxy checks (default: all namespaces)")
|
||||
|
|
|
@ -105,7 +105,7 @@ non-zero exit code.`,
|
|||
return configureAndRunChecks(stdout, stderr, options)
|
||||
},
|
||||
}
|
||||
cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of: basic, json")
|
||||
cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of: table, json, short")
|
||||
cmd.Flags().DurationVar(&options.wait, "wait", options.wait, "Maximum allowed time for all tests to pass")
|
||||
cmd.Flags().Bool("proxy", false, "")
|
||||
cmd.Flags().MarkHidden("proxy")
|
||||
|
|
|
@ -54,7 +54,7 @@ code.`,
|
|||
},
|
||||
}
|
||||
|
||||
cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of: basic, json")
|
||||
cmd.Flags().StringVarP(&options.output, "output", "o", options.output, "Output format. One of: table, json, short")
|
||||
cmd.Flags().BoolVar(&options.proxy, "proxy", options.proxy, "Also run data-plane checks, to determine if the data plane is healthy")
|
||||
cmd.Flags().DurationVar(&options.wait, "wait", options.wait, "Maximum allowed time for all tests to pass")
|
||||
cmd.Flags().StringVarP(&options.namespace, "namespace", "n", options.namespace, "Namespace to use for --proxy checks (default: all namespaces)")
|
||||
|
|
Loading…
Reference in New Issue