|
15 | 15 | AddConfigurationProtectedSettings, |
16 | 16 | ) |
17 | 17 |
|
| 18 | +from knack.commands import CLICommand |
18 | 19 |
|
19 | | -def load_arguments(self, _): |
| 20 | +def load_arguments(self, _: CLICommand) -> None: |
20 | 21 | with self.argument_context(consts.EXTENSION_NAME) as c: |
21 | 22 | c.argument('location', |
22 | 23 | validator=get_default_location_from_resource_group) |
@@ -131,3 +132,20 @@ def load_arguments(self, _): |
131 | 132 | c.argument('show_latest', |
132 | 133 | arg_type=get_three_state_flag(), |
133 | 134 | help='Filter results by only the latest version. For example, if this flag is used the latest version of the extensionType will be shown.') |
| 135 | + |
| 136 | + with self.argument_context(f"{consts.EXTENSION_NAME} troubleshoot") as c: |
| 137 | + c.argument('name', |
| 138 | + options_list=['--name', '-n'], |
| 139 | + help='Name of the Kubernetes extension') |
| 140 | + c.argument('namespace_list', |
| 141 | + options_list=['--namespace-list'], |
| 142 | + help='Comma-separated list of namespaces to troubleshoot') |
| 143 | + c.argument('kube_config', |
| 144 | + options_list=['--kube-config'], |
| 145 | + help='Path to the kube config file. If not specified, the default kube config file will be used.') |
| 146 | + c.argument('kube_context', |
| 147 | + options_list=['--kube-context'], |
| 148 | + help='Kubeconfig context from current machine. If not specified, the current context from kube config file will be used.') |
| 149 | + c.argument('skip_ssl_verification', |
| 150 | + action="store_true", |
| 151 | + help='Skip SSL verification for any cluster connection.') |
0 commit comments