Skip to content

Commit 1b8bf71

Browse files
authored
{AKS} Vendor new SDK and bump API version to 2024-10-02-preview (#8506)
1 parent 2703bc7 commit 1b8bf71

File tree

251 files changed

+5236
-4619
lines changed

Some content is hidden

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

251 files changed

+5236
-4619
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ 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+
Pending
13+
+++++++
14+
* Vendor new SDK and bump API version to 2024-10-02-preview.
15+
1216
13.0.0b8
1317
+++++++
1418
* `az aks create/update``: Update recording rule group create logic for managed prometheus addon
@@ -36,9 +40,6 @@ To release a new version, please select a new version number (usually plus 1 to
3640
13.0.0b2
3741
+++++++
3842
* `az aks create/update`: Update advanced container networking service (acns) with 2024-09-02-preview API version enablement.
39-
40-
Pending
41-
+++++++
4243
* Vendor new SDK and bump API version to 2024-09-02-preview.
4344

4445
13.0.0b1

src/aks-preview/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ Released version and adopted API version
181181
* - 9.0.0b2 ~ 13.0.0b1
182182
- 2024-07-02-preview
183183
-
184-
* - 13.0.0b2 ~ latest
184+
* - 13.0.0b2 ~ 13.0.0b7
185185
- 2024-09-02-preview
186186
-
187+
* - 13.0.0b8 ~ latest
188+
- 2024-10-02-preview
189+
-

src/aks-preview/azext_aks_preview/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def register_aks_preview_resource_type():
1616
register_resource_type(
1717
"latest",
1818
CUSTOM_MGMT_AKS_PREVIEW,
19-
SDKProfile("2024-09-02-preview", {"container_services": "2017-07-01"}),
19+
SDKProfile("2024-10-02-preview", {"container_services": "2017-07-01"}),
2020
)
2121

2222

src/aks-preview/azext_aks_preview/custom.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,11 +1846,11 @@ def aks_addon_list(cmd, client, resource_group_name, name):
18461846
else:
18471847
if addon_name == "virtual-node":
18481848
addon_key += os_type
1849-
enabled = bool(
1850-
mc.addon_profiles and
1851-
addon_key in mc.addon_profiles and
1852-
mc.addon_profiles[addon_key].enabled
1853-
)
1849+
enabled = False
1850+
if mc.addon_profiles:
1851+
matching_key = next((key for key in mc.addon_profiles if key.lower() == addon_key.lower()), None)
1852+
if matching_key:
1853+
enabled = bool(mc.addon_profiles[matching_key].enabled)
18541854
current_addons.append({
18551855
"name": addon_name,
18561856
"api_key": addon_key,

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,6 +2388,7 @@ def _handle_egress_gateways_asm(self, new_profile: ServiceMeshProfile) -> Tuple[
23882388
new_profile.istio.components.egress_gateways.append(
23892389
self.models.IstioEgressGateway( # pylint: disable=no-member
23902390
enabled=enable_egress_gateway,
2391+
name="fake-name", # TODO: temp fix when bump new SDK
23912392
)
23922393
)
23932394
updated = True

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=2024-09-02-preview
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
122+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
214+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
304+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedclusters/cliakstest000002/abort?api-version=2024-10-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=2024-09-02-preview
532+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
123+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
908+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
1007+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
1133+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
2366+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
19+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
124+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
597+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
691+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
816+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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=2024-09-02-preview
1125+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2024-10-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)