Skip to content

Commit 106c12c

Browse files
authored
{AKS} az aks update: Fix the bug affecting VMAS to VMS migration (#8997)
1 parent e21724d commit 106c12c

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,23 @@ To release a new version, please select a new version number (usually plus 1 to
1111

1212
Pending
1313
+++++++
14-
* Add support for `ManagedSystem` Agent Pool Mode.
1514

16-
18.0.0b19
15+
18.0.0b20
1716
+++++++
18-
- Add `--localdns-config` to `az aks nodepool add` and to `az aks nodepool update` to support configuring a local DNS profile for agent pools.
17+
* Fix the bug affecting VMAS to VMS migration in the `az aks update` command using the `--migrate-vmas-to-vms` option.
1918

19+
18.0.0b19
20+
+++++++
21+
* Add support for `ManagedSystem` Agent Pool Mode.
22+
* Add `--localdns-config` to `az aks nodepool add` and to `az aks nodepool update` to support configuring a local DNS profile for agent pools.
2023

2124
18.0.0b18
2225
+++++++
2326
* Add validation error when neither --location or --cluster and --resource-group-name are specified for az extension type list or az extension type version list
2427

25-
26-
2728
18.0.0b17
2829
+++++++
29-
* Remove `__import__('pkg_resources').declare_namespace(__name__)` from `vendored_sdks/__init__.py`` to fix the namespace package issue.
30+
* Remove `__import__('pkg_resources').declare_namespace(__name__)` from `vendored_sdks/__init__.py` to fix the namespace package issue.
3031

3132
18.0.0b16
3233
+++++++

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5384,7 +5384,10 @@ def update_vmas_to_vms(self, mc: ManagedCluster) -> ManagedCluster:
53845384
if not self.context.get_yes() and not prompt_y_n(msg, default="n"):
53855385
raise DecoratorEarlyExitException()
53865386
# Ensure we have valid vmas AP
5387-
if len(mc.agent_pool_profiles) == 1 and mc.agent_pool_profiles[0].type == CONST_AVAILABILITY_SET:
5387+
if len(mc.agent_pool_profiles) == 1 and mc.agent_pool_profiles[0].type in (
5388+
CONST_AVAILABILITY_SET,
5389+
CONST_VIRTUAL_MACHINES,
5390+
):
53885391
mc.agent_pool_profiles[0].type = CONST_VIRTUAL_MACHINES
53895392
else:
53905393
raise CLIError('This is not a valid VMAS cluster, we cannot proceed with the migration.')

src/aks-preview/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from setuptools import setup, find_packages
1111

12-
VERSION = "18.0.0b19"
12+
VERSION = "18.0.0b20"
1313

1414
CLASSIFIERS = [
1515
"Development Status :: 4 - Beta",

0 commit comments

Comments
 (0)