diff --git a/src/aks-preview/HISTORY.md b/src/aks-preview/HISTORY.md index d45359eaf5d..0ee9de28c66 100644 --- a/src/aks-preview/HISTORY.md +++ b/src/aks-preview/HISTORY.md @@ -2,6 +2,10 @@ Release History =============== +0.4.20 ++++++ +* Add commands '--zones' and '-z' for availability zones in aks + 0.4.19 +++++ * Refactor and remove a custom way of getting subscriptions diff --git a/src/aks-preview/README.md b/src/aks-preview/README.md index 197ccfc96b0..81b82b571fe 100644 --- a/src/aks-preview/README.md +++ b/src/aks-preview/README.md @@ -107,7 +107,7 @@ az aks create \ -g MyResourceGroup \ -n MyManagedCluster \ --vm-set-type VirtualMachineScaleSets \ - --node-zones 1 2 3 + --zones 1 2 3 ``` #### Enable pod security policy for new cluster diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index be075b15582..2972af1ae88 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -360,7 +360,10 @@ long-summary: If not specified, defaults to 110, or 30 for advanced networking configurations. - name: --node-zones type: string array - short-summary: (PREVIEW) Availability zones where agent nodes will be placed. + short-summary: (will be deprecated, use --zones) Availability zones where agent nodes will be placed. + - name: --zones -z + type: string array + short-summary: Availability zones where agent nodes will be placed. - name: --vnet-subnet-id type: string short-summary: The ID of a subnet in an existing VNet into which to deploy the cluster. diff --git a/src/aks-preview/azext_aks_preview/_params.py b/src/aks-preview/azext_aks_preview/_params.py index 854704e7ba6..16f407af674 100644 --- a/src/aks-preview/azext_aks_preview/_params.py +++ b/src/aks-preview/azext_aks_preview/_params.py @@ -78,7 +78,7 @@ def load_arguments(self, _): c.argument('max_count', type=int, validator=validate_nodes_count) c.argument('enable_vmss', action='store_true', help='To be deprecated. Use vm_set_type instead.') c.argument('vm_set_type', type=str, validator=validate_vm_set_type) - c.argument('node_zones', zones_type, options_list='--node-zones', help='(PREVIEW) Space-separated list of availability zones where agent nodes will be placed.') + c.argument('node_zones', zones_type, options_list=['--node-zones', '--zones', '-z'], help='(--node-zones will be deprecated, use --zones) Space-separated list of availability zones where agent nodes will be placed.') c.argument('enable_pod_security_policy', action='store_true') c.argument('node_resource_group') c.argument('attach_acr', acr_arg_type) @@ -113,7 +113,7 @@ def load_arguments(self, _): for scope in ['aks nodepool add']: with self.argument_context(scope) as c: c.argument('nodepool_name', type=str, options_list=['--name', '-n'], validator=validate_nodepool_name, help='The node pool name.') - c.argument('node_zones', zones_type, options_list='--node-zones', help='(PREVIEW) Space-separated list of availability zones where agent nodes will be placed.') + c.argument('node_zones', zones_type, options_list=['--node-zones', '--zones', '-z'], help='(--node-zones will be deprecated) Space-separated list of availability zones where agent nodes will be placed.') c.argument('node_vm_size', options_list=['--node-vm-size', '-s'], completer=get_vm_size_completion_list) c.argument('max_pods', type=int, options_list=['--max-pods', '-m'], validator=validate_max_pods) c.argument('os_type', type=str) diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 46a0220bffa..c25fbcfc93a 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open as open1 from setuptools import setup, find_packages -VERSION = "0.4.19" +VERSION = "0.4.20" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers',