Skip to content

Commit 63a3ae8

Browse files
authored
[AKS] BREAKING CHANGE: Update ACNS preview CLI commands to align with GA CLI (Azure#8217)
1 parent fd07500 commit 63a3ae8

19 files changed

+5728
-15578
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ If there is no rush to release a new version, please just add a description of t
99

1010
To release a new version, please select a new version number (usually plus 1 to last patch version, X.Y.Z -> Major.Minor.Patch, more details in `\doc <https://semver.org/>`_), and then add a new section named as the new version number in this file, the content should include the new modifications and everything from the *Pending* section. Finally, update the `VERSION` variable in `setup.py` with this new version number.
1111

12+
12.0.0b1
13+
+++++++
14+
* [BREAKING CHANGE]: Remove advanced container networking service (acns) enablement preview parameters `--enable-advanced-network-observability`, `--disable-advanced-network-observability`, `--enable-fqdn-policy`, `--disable-fqdn-policy`, and `--advanced-networking-observability-tls-management` from `az aks create/update` command.
15+
* Add advanced container networking service (acns) enablement GA parameters `--disable-acns-observability` and `--disable-acns-security` to `az aks create/update` command.
16+
1217
11.0.0b1
1318
+++++++
1419
* [BREAKING CHANGE]: `az aks create`: Remove AAD-legacy properties `--aad-client-app-id`, `--aad-server-app-id` and `--aad-server-app-secret` when creating cluster.

src/aks-preview/azext_aks_preview/_consts.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,6 @@
327327
CONST_IMDS_RESTRICTION_ENABLED = "None"
328328
CONST_IMDS_RESTRICTION_DISABLED = "IMDS"
329329

330-
# TLS Management Consts
331-
CONST_TLS_MANAGEMENT_MANAGED = "Managed"
332-
CONST_TLS_MANAGEMENT_NONE = "None"
333-
334330
# GPU Driver Type Consts
335331
CONST_GPU_DRIVER_TYPE_CUDA = "CUDA"
336332
CONST_GPU_DRIVER_TYPE_GRID = "GRID"

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,15 @@
219219
Used together with the "azure" network plugin.
220220
Requires either --pod-subnet-id or --network-plugin-mode=overlay.
221221
This flag is deprecated in favor of --network-dataplane=cilium.
222-
- name: --enable-advanced-network-observability
222+
- name: --enable-acns
223223
type: bool
224-
short-summary: Enable advanced network observability functionalities on a cluster. Note that enabling this will incur additional costs.
225-
- name: --enable-fqdn-policy
224+
short-summary: Enable advanced network functionalities on a cluster. Enabling this will incur additional costs.
225+
- name: --disable-acns-observability
226226
type: bool
227-
short-summary: Enable advanced network security FQDN functionalities on a cluster. Note that enabling this will incur additional costs.
228-
- name: --enable-acns
227+
short-summary: Used to disable advanced networking observability features on a clusters when enabling advanced networking features with "--enable-acns".
228+
- name: --disable-acns-security
229229
type: bool
230-
short-summary: Enable advanced network functionalities on a cluster. Note that enabling this will incur additional costs.
231-
- name: --advanced-networking-observability-tls-management
232-
type: string
233-
short-summary: Management of TLS certificates for querying network flow logs via the flow log endpoint for Advanced Networking observability clusters. Valid values are "Managed" and "None". If not specified, the default is Managed.
230+
short-summary: Used to disable advanced networking security features on a clusters when enabling advanced networking features with "--enable-acns".
234231
- name: --no-ssh-key -x
235232
type: string
236233
short-summary: Do not use or create a local SSH key.
@@ -1205,27 +1202,18 @@
12051202
- name: --nodepool-labels
12061203
type: string
12071204
short-summary: The node labels for all node pool. See https://aka.ms/node-labels for syntax of labels.
1208-
- name: --enable-advanced-network-observability
1209-
type: bool
1210-
short-summary: Enable advanced network observability functionalities on a cluster. Note that enabling this will incur additional costs.
1211-
- name: --disable-advanced-network-observability
1212-
type: bool
1213-
short-summary: Disable advanced network observability functionalities on a cluster
1214-
- name: --advanced-networking-observability-tls-management
1215-
type: string
1216-
short-summary: Management of TLS certificates for querying network flow logs via the flow log endpoint for Advanced Networking observability clusters. Valid values are "Managed" and "None". If not specified, the default is Managed.
1217-
- name: --enable-fqdn-policy
1218-
type: bool
1219-
short-summary: Enable advanced network security FQDN functionalities on a cluster. Note that enabling this will incur additional costs.
1220-
- name: --disable-fqdn-policy
1221-
type: bool
1222-
short-summary: Disable advanced network security FQDN functionalities on a cluster
12231205
- name: --enable-acns
12241206
type: bool
1225-
short-summary: Enable advanced network functionalities on a cluster. Note that enabling this will incur additional costs.
1207+
short-summary: Enable advanced network functionalities on a cluster. Enabling this will incur additional costs.
12261208
- name: --disable-acns
12271209
type: bool
1228-
short-summary: Disable advanced network functionalities on a cluster
1210+
short-summary: Disable all advanced networking functionalities on a cluster.
1211+
- name: --disable-acns-observability
1212+
type: bool
1213+
short-summary: Used to disable advanced networking observability features on a clusters when enabling advanced networking features with "--enable-acns".
1214+
- name: --disable-acns-security
1215+
type: bool
1216+
short-summary: Used to disable advanced networking security features on a clusters when enabling advanced networking features with "--enable-acns".
12291217
- name: --enable-cost-analysis
12301218
type: bool
12311219
short-summary: Enable exporting Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. For more information see aka.ms/aks/docs/cost-analysis.

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@
127127
CONST_APP_ROUTING_EXTERNAL_NGINX,
128128
CONST_APP_ROUTING_INTERNAL_NGINX,
129129
CONST_APP_ROUTING_NONE_NGINX,
130-
CONST_TLS_MANAGEMENT_MANAGED,
131-
CONST_TLS_MANAGEMENT_NONE,
132130
CONST_GPU_DRIVER_TYPE_CUDA,
133131
CONST_GPU_DRIVER_TYPE_GRID,
134132
)
@@ -417,11 +415,6 @@
417415
CONST_APP_ROUTING_NONE_NGINX
418416
]
419417

420-
tls_management_types = [
421-
CONST_TLS_MANAGEMENT_MANAGED,
422-
CONST_TLS_MANAGEMENT_NONE,
423-
]
424-
425418
gpu_driver_types = [
426419
CONST_GPU_DRIVER_TYPE_CUDA,
427420
CONST_GPU_DRIVER_TYPE_GRID,
@@ -818,23 +811,17 @@ def load_arguments(self, _):
818811
),
819812
)
820813
c.argument(
821-
"enable_advanced_network_observability",
814+
"enable_acns",
822815
action="store_true",
823816
is_preview=True,
824817
)
825818
c.argument(
826-
"advanced_networking_observability_tls_management",
827-
arg_type=get_enum_type(tls_management_types),
828-
default=CONST_TLS_MANAGEMENT_MANAGED,
829-
is_preview=True,
830-
)
831-
c.argument(
832-
"enable_fqdn_policy",
819+
"disable_acns_observability",
833820
action="store_true",
834821
is_preview=True,
835822
)
836823
c.argument(
837-
"enable_acns",
824+
"disable_acns_security",
838825
action="store_true",
839826
is_preview=True,
840827
)
@@ -1301,37 +1288,22 @@ def load_arguments(self, _):
13011288
c.argument("safeguards_version", help="The deployment safeguards version", is_preview=True)
13021289
c.argument("safeguards_excluded_ns", is_preview=True)
13031290
c.argument(
1304-
"enable_advanced_network_observability",
1305-
action="store_true",
1306-
is_preview=True,
1307-
)
1308-
c.argument(
1309-
"disable_advanced_network_observability",
1310-
action="store_true",
1311-
is_preview=True,
1312-
)
1313-
c.argument(
1314-
"advanced_networking_observability_tls_management",
1315-
arg_type=get_enum_type(tls_management_types),
1316-
is_preview=True,
1317-
)
1318-
c.argument(
1319-
"enable_fqdn_policy",
1291+
"enable_acns",
13201292
action="store_true",
13211293
is_preview=True,
13221294
)
13231295
c.argument(
1324-
"disable_fqdn_policy",
1296+
"disable_acns",
13251297
action="store_true",
13261298
is_preview=True,
13271299
)
13281300
c.argument(
1329-
"enable_acns",
1301+
"disable_acns_observability",
13301302
action="store_true",
13311303
is_preview=True,
13321304
)
13331305
c.argument(
1334-
"disable_acns",
1306+
"disable_acns_security",
13351307
action="store_true",
13361308
is_preview=True,
13371309
)

src/aks-preview/azext_aks_preview/custom.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,10 @@ def aks_create(
489489
enable_addon_autoscaling=False,
490490
enable_cilium_dataplane=False,
491491
custom_ca_trust_certificates=None,
492-
enable_advanced_network_observability=None,
493-
advanced_networking_observability_tls_management=None,
494-
enable_fqdn_policy=None,
492+
# advanced networking
495493
enable_acns=None,
494+
disable_acns_observability=None,
495+
disable_acns_security=None,
496496
# nodepool
497497
crg_id=None,
498498
message_of_the_day=None,
@@ -719,13 +719,11 @@ def aks_update(
719719
safeguards_level=None,
720720
safeguards_version=None,
721721
safeguards_excluded_ns=None,
722-
enable_advanced_network_observability=None,
723-
disable_advanced_network_observability=None,
724-
advanced_networking_observability_tls_management=None,
725-
enable_fqdn_policy=None,
726-
disable_fqdn_policy=None,
722+
# advanced networking
727723
enable_acns=None,
728724
disable_acns=None,
725+
disable_acns_observability=None,
726+
disable_acns_security=None,
729727
# metrics profile
730728
enable_cost_analysis=False,
731729
disable_cost_analysis=False,

0 commit comments

Comments
 (0)