Skip to content

Commit 927eddb

Browse files
authored
{AKS} Vendor new SDK and bump API version to 2025-08-02-preview (#9276)
1 parent b52ac07 commit 927eddb

File tree

304 files changed

+4046
-4000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+4046
-4000
lines changed

src/aks-preview/HISTORY.rst

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

1212
Pending
1313
+++++++
14+
* Vendor new SDK and bump API version to 2025-08-02-preview.
15+
* Pre-deprecate `--enable-custom-ca-trust` and `--disable-custom-ca-trust` in `az aks create`, `az aks update` commands.
1416

1517
18.0.0b43
1618
+++++++

src/aks-preview/azext_aks_preview/agentpool_decorator.py

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -241,65 +241,6 @@ def get_workload_runtime(self) -> Union[str, None]:
241241
# this parameter does not need validation
242242
return workload_runtime
243243

244-
def _get_enable_custom_ca_trust(self, enable_validation: bool = False) -> bool:
245-
"""Internal function to obtain the value of enable_custom_ca_trust.
246-
247-
This function supports the option of enable_validation. When enabled, if both enable_custom_ca_trust and
248-
disable_custom_ca_trust are specified, raise a MutuallyExclusiveArgumentError.
249-
250-
:return: bool
251-
"""
252-
# read the original value passed by the command
253-
enable_custom_ca_trust = self.raw_param.get("enable_custom_ca_trust")
254-
# In create mode, try to read the property value corresponding to the parameter from the `agentpool` object
255-
if self.decorator_mode == DecoratorMode.CREATE:
256-
if self.agentpool and self.agentpool.enable_custom_ca_trust is not None:
257-
enable_custom_ca_trust = self.agentpool.enable_custom_ca_trust
258-
259-
# this parameter does not need dynamic completion
260-
# validation
261-
if enable_validation:
262-
if enable_custom_ca_trust and self._get_disable_custom_ca_trust(enable_validation=False):
263-
raise MutuallyExclusiveArgumentError(
264-
'Cannot specify "--enable-custom-ca-trust" and "--disable-custom-ca-trust" at the same time'
265-
)
266-
return enable_custom_ca_trust
267-
268-
def get_enable_custom_ca_trust(self) -> bool:
269-
"""Obtain the value of enable_custom_ca_trust.
270-
271-
:return: bool
272-
"""
273-
return self._get_enable_custom_ca_trust(enable_validation=True)
274-
275-
def _get_disable_custom_ca_trust(self, enable_validation: bool = False) -> bool:
276-
"""Internal function to obtain the value of disable_custom_ca_trust.
277-
278-
This function supports the option of enable_validation. When enabled, if both enable_custom_ca_trust and
279-
disable_custom_ca_trust are specified, raise a MutuallyExclusiveArgumentError.
280-
281-
:return: bool
282-
"""
283-
# read the original value passed by the command
284-
disable_custom_ca_trust = self.raw_param.get("disable_custom_ca_trust")
285-
# This option is not supported in create mode, so its value is not read from `agentpool`.
286-
287-
# this parameter does not need dynamic completion
288-
# validation
289-
if enable_validation:
290-
if disable_custom_ca_trust and self._get_enable_custom_ca_trust(enable_validation=False):
291-
raise MutuallyExclusiveArgumentError(
292-
'Cannot specify "--enable-custom-ca-trust" and "--disable-custom-ca-trust" at the same time'
293-
)
294-
return disable_custom_ca_trust
295-
296-
def get_disable_custom_ca_trust(self) -> bool:
297-
"""Obtain the value of disable_custom_ca_trust.
298-
299-
:return: bool
300-
"""
301-
return self._get_disable_custom_ca_trust(enable_validation=True)
302-
303244
def _get_disable_windows_outbound_nat(self) -> bool:
304245
"""Internal function to obtain the value of disable_windows_outbound_nat.
305246
@@ -1267,16 +1208,6 @@ def set_up_gpu_properties(self, agentpool: AgentPool) -> AgentPool:
12671208
agentpool.workload_runtime = self.context.get_workload_runtime()
12681209
return agentpool
12691210

1270-
def set_up_custom_ca_trust(self, agentpool: AgentPool) -> AgentPool:
1271-
"""Set up custom ca trust property for the AgentPool object.
1272-
1273-
:return: the AgentPool object
1274-
"""
1275-
self._ensure_agentpool(agentpool)
1276-
1277-
agentpool.enable_custom_ca_trust = self.context.get_enable_custom_ca_trust()
1278-
return agentpool
1279-
12801211
def set_up_agentpool_windows_profile(self, agentpool: AgentPool) -> AgentPool:
12811212
"""Set up windows profile for the AgentPool object.
12821213
@@ -1548,8 +1479,6 @@ def construct_agentpool_profile_preview(self) -> AgentPool:
15481479
agentpool = self.set_up_preview_vm_properties(agentpool)
15491480
# set up message of the day
15501481
agentpool = self.set_up_motd(agentpool)
1551-
# set up custom ca trust
1552-
agentpool = self.set_up_custom_ca_trust(agentpool)
15531482
# set up agentpool windows profile
15541483
agentpool = self.set_up_agentpool_windows_profile(agentpool)
15551484
# set up agentpool network profile
@@ -1702,20 +1631,6 @@ def init_context(self) -> None:
17021631
self.agentpool_decorator_mode,
17031632
)
17041633

1705-
def update_custom_ca_trust(self, agentpool: AgentPool) -> AgentPool:
1706-
"""Update custom ca trust property for the AgentPool object.
1707-
1708-
:return: the AgentPool object
1709-
"""
1710-
self._ensure_agentpool(agentpool)
1711-
1712-
if self.context.get_enable_custom_ca_trust():
1713-
agentpool.enable_custom_ca_trust = True
1714-
1715-
if self.context.get_disable_custom_ca_trust():
1716-
agentpool.enable_custom_ca_trust = False
1717-
return agentpool
1718-
17191634
def update_network_profile(self, agentpool: AgentPool) -> AgentPool:
17201635
self._ensure_agentpool(agentpool)
17211636

@@ -1859,9 +1774,6 @@ def update_agentpool_profile_preview(self, agentpools: List[AgentPool] = None) -
18591774
setattr(agentpool, attr, None)
18601775
return agentpool
18611776

1862-
# update custom ca trust
1863-
agentpool = self.update_custom_ca_trust(agentpool)
1864-
18651777
# update network profile
18661778
agentpool = self.update_network_profile(agentpool)
18671779

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_abort.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interactions:
1616
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
1717
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
1818
method: GET
19-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
2020
response:
2121
body:
2222
string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000002''
@@ -119,7 +119,7 @@ interactions:
119119
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
120120
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
121121
method: PUT
122-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
122+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
123123
response:
124124
body:
125125
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -211,7 +211,7 @@ interactions:
211211
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
212212
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
213213
method: GET
214-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
214+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
215215
response:
216216
body:
217217
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -301,7 +301,7 @@ interactions:
301301
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
302302
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
303303
method: POST
304-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedclusters/cliakstest000002/abort?api-version=2025-07-02-preview
304+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedclusters/cliakstest000002/abort?api-version=2025-08-02-preview
305305
response:
306306
body:
307307
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -529,7 +529,7 @@ interactions:
529529
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
530530
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
531531
method: GET
532-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
532+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
533533
response:
534534
body:
535535
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_addon_disable_confcom_addon.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interactions:
1616
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
1717
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
1818
method: GET
19-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
2020
response:
2121
body:
2222
string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000002''
@@ -120,7 +120,7 @@ interactions:
120120
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
121121
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
122122
method: PUT
123-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
123+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
124124
response:
125125
body:
126126
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -905,7 +905,7 @@ interactions:
905905
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
906906
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
907907
method: GET
908-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
908+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
909909
response:
910910
body:
911911
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -1004,7 +1004,7 @@ interactions:
10041004
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
10051005
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
10061006
method: GET
1007-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
1007+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
10081008
response:
10091009
body:
10101010
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -1130,7 +1130,7 @@ interactions:
11301130
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
11311131
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
11321132
method: PUT
1133-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
1133+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
11341134
response:
11351135
body:
11361136
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -2363,7 +2363,7 @@ interactions:
23632363
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
23642364
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
23652365
method: GET
2366-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
2366+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
23672367
response:
23682368
body:
23692369
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_addon_disable_openservicemesh.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interactions:
1616
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
1717
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
1818
method: GET
19-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
2020
response:
2121
body:
2222
string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000002''
@@ -121,7 +121,7 @@ interactions:
121121
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
122122
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
123123
method: PUT
124-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
124+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
125125
response:
126126
body:
127127
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -594,7 +594,7 @@ interactions:
594594
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
595595
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
596596
method: GET
597-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
597+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
598598
response:
599599
body:
600600
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -688,7 +688,7 @@ interactions:
688688
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
689689
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
690690
method: GET
691-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
691+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
692692
response:
693693
body:
694694
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -813,7 +813,7 @@ interactions:
813813
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
814814
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
815815
method: PUT
816-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
816+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
817817
response:
818818
body:
819819
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n
@@ -1122,7 +1122,7 @@ interactions:
11221122
- AZURECLI/2.53.0 azsdk-python-azure-mgmt-containerservice/28.0.0b Python/3.8.10
11231123
(Linux-5.15.0-1051-azure-x86_64-with-glibc2.29)
11241124
method: GET
1125-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-07-02-preview
1125+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2025-08-02-preview
11261126
response:
11271127
body:
11281128
string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n

0 commit comments

Comments
 (0)