diff --git a/src/aks-preview/HISTORY.rst b/src/aks-preview/HISTORY.rst index f871cf634e3..aae3a0ced28 100644 --- a/src/aks-preview/HISTORY.rst +++ b/src/aks-preview/HISTORY.rst @@ -12,8 +12,18 @@ To release a new version, please select a new version number (usually plus 1 to Pending +++++++ +0.5.71 +++++++ + +* Fix: Updated validators for options --min-count and --max-count to support specifying values greater than 100. Related commands are + * `az aks create` + * `az aks update` + * `az aks nodepool add` + * `az aks nodepool update` + 0.5.70 ++++++ + * Fix: Don't update storageProfile if not set . 0.5.69 diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 227284da8b1..bf7637f9258 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -258,10 +258,10 @@ long-summary: If specified, please make sure the kubernetes version is larger than 1.10.6. - name: --min-count type: int - short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100]. + short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 1000]. - name: --max-count type: int - short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100]. + short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 1000]. - name: --cluster-autoscaler-profile type: list short-summary: Space-separated list of key=value pairs for configuring cluster autoscaler. Pass an empty string to clear the profile. @@ -549,10 +549,10 @@ short-summary: Update min-count or max-count for cluster autoscaler. - name: --min-count type: int - short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100] + short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 1000] - name: --max-count type: int - short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100] + short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 1000] - name: --uptime-sla type: bool short-summary: Enable a paid managed cluster service with a financially backed SLA. @@ -1061,10 +1061,10 @@ short-summary: Enable cluster autoscaler. - name: --min-count type: int - short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100] + short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [0, 1000] for user nodepool, and [1,1000] for system nodepool. - name: --max-count type: int - short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100] + short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [0, 1000] for user nodepool, and [1,1000] for system nodepool. - name: --scale-down-mode type: string short-summary: "Describes how VMs are added to or removed from nodepools." @@ -1191,10 +1191,10 @@ short-summary: Update min-count or max-count for cluster autoscaler. - name: --min-count type: int - short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100] + short-summary: Minimun nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [0, 1000] for user nodepool, and [1,1000] for system nodepool. - name: --max-count type: int - short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [1, 100] + short-summary: Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [0, 1000] for user nodepool, and [1,1000] for system nodepool. - name: --scale-down-mode type: string short-summary: "Describes how VMs are added to or removed from nodepools." diff --git a/src/aks-preview/azext_aks_preview/_validators.py b/src/aks-preview/azext_aks_preview/_validators.py index 4c72cdec92c..e1a5c55804f 100644 --- a/src/aks-preview/azext_aks_preview/_validators.py +++ b/src/aks-preview/azext_aks_preview/_validators.py @@ -93,13 +93,13 @@ def validate_linux_host_name(namespace): def validate_nodes_count(namespace): - """Validate that min_count and max_count is set to 1-100""" + """Validate that min_count and max_count is set to 0-1000""" if namespace.min_count is not None: - if namespace.min_count < 1 or namespace.min_count > 100: - raise CLIError('--min-count must be in the range [1,100]') + if namespace.min_count < 0 or namespace.min_count > 1000: + raise CLIError('--min-count must be in the range [0,1000]') if namespace.max_count is not None: - if namespace.max_count < 1 or namespace.max_count > 100: - raise CLIError('--max-count must be in the range [1,100]') + if namespace.max_count < 0 or namespace.max_count > 1000: + raise CLIError('--max-count must be in the range [0,1000]') def validate_ip_ranges(namespace): diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 0de7eff8bba..85563519b8d 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -VERSION = "0.5.70" +VERSION = "0.5.71" CLASSIFIERS = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers",