Skip to content

Commit a7bd81b

Browse files
committed
update
1 parent 6a1c7af commit a7bd81b

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

src/azure-cli/azure/cli/command_modules/acs/_breaking_change.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,30 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------
55

6-
from azure.cli.core.breaking_change import register_default_value_breaking_change
6+
from azure.cli.core.breaking_change import (
7+
register_default_value_breaking_change,
8+
register_conditional_breaking_change,
9+
)
710

811
register_default_value_breaking_change(
912
'aks create',
1013
'--node-vm-size',
1114
'Standard_DS2_V2 (Linux), Standard_DS2_V3 (Windows)',
1215
'Dynamically Selected By Azure'
1316
)
17+
18+
register_conditional_breaking_change(
19+
tag="aks_create_cluster_autoscaler_profile",
20+
breaking_change="The option `--cluster-autoscaler-profile` in command `az aks create` will be changed to "
21+
"allow multiple values for the same key, separated by commas. Different key-value pairs will be separated by "
22+
"spaces.",
23+
command_name="aks create",
24+
)
25+
26+
register_conditional_breaking_change(
27+
tag="aks_update_cluster_autoscaler_profile",
28+
breaking_change="The option `--cluster-autoscaler-profile` in command `az aks update` will be changed to "
29+
"allow multiple values for the same key, separated by commas. Different key-value pairs will be separated by "
30+
"spaces.",
31+
command_name="aks update",
32+
)

src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6282,6 +6282,13 @@ def set_up_auto_scaler_profile(self, mc: ManagedCluster) -> ManagedCluster:
62826282
self._ensure_mc(mc)
62836283

62846284
cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()
6285+
if cluster_autoscaler_profile is not None:
6286+
from azure.cli.core.breaking_change import print_conditional_breaking_change
6287+
print_conditional_breaking_change(
6288+
self.cmd.cli_ctx,
6289+
tag="aks_create_cluster_autoscaler_profile",
6290+
custom_logger=logger
6291+
)
62856292
mc.auto_scaler_profile = cluster_autoscaler_profile
62866293
return mc
62876294

@@ -7076,6 +7083,12 @@ def update_auto_scaler_profile(self, mc):
70767083
cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()
70777084
if cluster_autoscaler_profile is not None:
70787085
# update profile (may clear profile with empty dictionary)
7086+
from azure.cli.core.breaking_change import print_conditional_breaking_change
7087+
print_conditional_breaking_change(
7088+
self.cmd.cli_ctx,
7089+
tag="aks_update_cluster_autoscaler_profile",
7090+
custom_logger=logger
7091+
)
70797092
mc.auto_scaler_profile = cluster_autoscaler_profile
70807093
return mc
70817094

0 commit comments

Comments
 (0)