|
75 | 75 | validate_acr, |
76 | 76 | validate_addon, |
77 | 77 | validate_addons, |
| 78 | + validate_agent_pool_name, |
78 | 79 | validate_apiserver_subnet_id, |
79 | 80 | validate_assign_identity, |
80 | 81 | validate_assign_kubelet_identity, |
@@ -423,6 +424,8 @@ def load_arguments(self, _): |
423 | 424 |
|
424 | 425 | with self.argument_context('aks nodepool') as c: |
425 | 426 | c.argument('cluster_name', help='The cluster name.') |
| 427 | + # the following argument is declared for the wait command |
| 428 | + c.argument('agent_pool_name', options_list=['--nodepool-name', '--agent-pool-name'], validator=validate_agent_pool_name, help='The node pool name.') |
426 | 429 |
|
427 | 430 | for sub_command in ['add', 'update', 'upgrade', 'scale', 'show', 'list', 'delete']: |
428 | 431 | with self.argument_context('aks nodepool ' + sub_command) as c: |
@@ -699,12 +702,12 @@ def load_arguments(self, _): |
699 | 702 | c.argument('role_binding_name', options_list=[ |
700 | 703 | '--name', '-n'], required=True, help='The role binding name.') |
701 | 704 |
|
702 | | - for scope in ['aks trustedaccess rolebinding create', 'aks trustedaccess rolebinding update']: |
703 | | - with self.argument_context(scope) as c: |
704 | | - c.argument('roles', nargs='*', |
705 | | - help='space-separated roles: Microsoft.Demo/samples/reader Microsoft.Demo/samples/writer ...') |
706 | | - c.argument('source_resource_id', options_list=['--source-resource-id', '-s'], |
707 | | - help='The source resource id of the binding') |
| 705 | + with self.argument_context('aks trustedaccess rolebinding create') as c: |
| 706 | + c.argument('roles', nargs='*', help='space-separated roles: Microsoft.Demo/samples/reader Microsoft.Demo/samples/writer ...') |
| 707 | + c.argument('source_resource_id', options_list=['--source-resource-id', '-s'], help='The source resource id of the binding') |
| 708 | + |
| 709 | + with self.argument_context('aks trustedaccess rolebinding update') as c: |
| 710 | + c.argument('roles', nargs='*', help='space-separated roles: Microsoft.Demo/samples/reader Microsoft.Demo/samples/writer ...') |
708 | 711 |
|
709 | 712 |
|
710 | 713 | def _get_default_install_location(exe_name): |
|
0 commit comments