Skip to content

Commit a2d5f24

Browse files
authored
Merge branch 'main' into containers-from-image
2 parents 21b7c51 + 91bcb12 commit a2d5f24

File tree

268 files changed

+4544
-4141
lines changed

Some content is hidden

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

268 files changed

+4544
-4141
lines changed

src/aks-preview/HISTORY.rst

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

1212
Pending
1313
+++++++
14+
15+
16+
19.0.0b19
17+
+++++++
1418
* Add add-on support for `ApplicationLoadBalancer` (Application Gateway for Containers)
15-
- AKS Create and Update parameters for `--enable-application-load-balancer` and `--disable-application-load-balancer`
16-
- `az aks applicationloadbalancer enable`: Enable Application Load Balancer add-on for an existing cluster.
17-
- `az aks applicationloadbalancer disable`: Disable Application Load Balancer add-on for an existing cluster.
18-
- `az aks applicationloadbalancer update`: Update Application Load Balancer add-on for an existing cluster.
19+
* AKS Create and Update parameters for `--enable-application-load-balancer` and `--disable-application-load-balancer`
20+
* `az aks applicationloadbalancer enable`: Enable Application Load Balancer add-on for an existing cluster.
21+
* `az aks applicationloadbalancer disable`: Disable Application Load Balancer add-on for an existing cluster.
22+
* `az aks applicationloadbalancer update`: Update Application Load Balancer add-on for an existing cluster.
23+
* Remove prerequisite for `--enable-gateway-api` option in `az aks create` and `az aks update` commands - managed Gateway API ingress provider enablement no longer required
1924

2025
19.0.0b18
2126
+++++++

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@
695695
short-summary: Enable user-defined scheduler configuration for kube-scheduler upstream on the cluster
696696
- name: --enable-gateway-api
697697
type: bool
698-
short-summary: Enable managed installation of Gateway API CRDs from the standard release channel. Requires at least one managed Gateway API ingress provider to be enabled.
698+
short-summary: Enable managed installation of Gateway API CRDs from the standard release channel.
699699
- name: --enable-hosted-system
700700
type: bool
701701
short-summary: Create a cluster with fully hosted system components. This applies only when creating a new automatic cluster.
@@ -788,8 +788,8 @@
788788
text: az aks create -g MyResourceGroup -n MyManagedCluster --vm-set-type VirtualMachines --vm-sizes "VMSize1,VMSize2" --node-count 3
789789
- name: Create a kubernetes cluster with a fully managed system node pool
790790
text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-managed-system-pool
791-
- name: Create a kubernetes cluster with the Azure Service Mesh addon enabled with a managed installation of Gateway API CRDs from the standard release channel.
792-
text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-azure-service-mesh --enable-gateway-api
791+
- name: Create a kubernetes cluster with a managed installation of Gateway API CRDs from the standard release channel.
792+
text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-gateway-api
793793
- name: Create an automatic cluster with hosted system components enabled.
794794
text: az aks create -g MyResourceGroup -n MyManagedCluster --sku automatic --enable-hosted-system
795795
@@ -1417,7 +1417,7 @@
14171417
short-summary: Disable user-defined scheduler configuration for kube-scheduler upstream on the cluster
14181418
- name: --enable-gateway-api
14191419
type: bool
1420-
short-summary: Enable managed installation of Gateway API CRDs from the standard release channel. Requires at least one managed Gateway API ingress provider to be enabled.
1420+
short-summary: Enable managed installation of Gateway API CRDs from the standard release channel.
14211421
- name: --disable-gateway-api
14221422
type: bool
14231423
short-summary: Disable managed installation of Gateway API CRDs.

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_gateway_api_and_azureservicemesh.yaml renamed to src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_gateway_api_and_azureservicemesh.yaml

File renamed without changes.

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

Lines changed: 0 additions & 1308 deletions
This file was deleted.

src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py

Lines changed: 3 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -21528,7 +21528,7 @@ def test_aks_jwtauthenticator_cmds(self, resource_group, resource_group_location
2152821528
@AKSCustomResourceGroupPreparer(
2152921529
random_name_length=17, name_prefix="clitest", location="centraluseuap"
2153021530
)
21531-
def test_aks_create_with_gateway_api_and_azureservicemesh(
21531+
def test_aks_create_and_update_with_gateway_api_and_azureservicemesh(
2153221532
self, resource_group, resource_group_location
2153321533
):
2153421534
aks_name = self.create_random_name("cliakstest", 16)
@@ -21589,65 +21589,5 @@ def test_aks_create_with_gateway_api_and_azureservicemesh(
2158921589
],
2159021590
)
2159121591

21592-
21593-
@AllowLargeResponse()
21594-
@AKSCustomResourceGroupPreparer(
21595-
random_name_length=17, name_prefix="clitest", location="centraluseuap"
21596-
)
21597-
def test_aks_managed_gateway_requires_service_mesh(
21598-
self, resource_group, resource_group_location
21599-
):
21600-
"""
21601-
Verify that enabling managed Gateway API requires a Gateway API implementation (e.g., Azure Service Mesh).
21602-
21603-
This test:
21604-
- Attempts and fails to create a cluster with --enable-gateway-api without ASM enabled.
21605-
- Creates a minimal cluster.
21606-
- Attempts and fails to update it with --enable-gateway-api (still without ASM).
21607-
"""
21608-
21609-
# reset the count so in replay mode the random names will start with 0
21610-
self.test_resources_count = 0
21611-
21612-
aks_name = self.create_random_name("cliakstest", 16)
21613-
self.kwargs.update(
21614-
{
21615-
"resource_group": resource_group,
21616-
"name": aks_name,
21617-
"ssh_key_value": self.generate_ssh_keys(),
21618-
"location": resource_group_location,
21619-
}
21620-
)
21621-
21622-
# Attempt and expect failure to create a cluster with Gateway API but without ASM
21623-
create_with_gateway_cmd = (
21624-
"aks create --resource-group={resource_group} --name={name} "
21625-
"--enable-gateway-api "
21626-
"--ssh-key-value={ssh_key_value} -o json "
21627-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/ManagedGatewayAPIPreview "
21628-
)
21629-
self.cmd(create_with_gateway_cmd, expect_failure=True)
21630-
21631-
# Create a minimal cluster without Gateway API or ASM
21632-
create_minimal_cmd = (
21633-
"aks create --resource-group={resource_group} --name={name} "
21634-
"--ssh-key-value={ssh_key_value} -o json"
21635-
)
21636-
self.cmd(
21637-
create_minimal_cmd,
21638-
checks=[
21639-
self.check("provisioningState", "Succeeded"),
21640-
],
21641-
)
21642-
21643-
# Attempt and expect failure to enable Gateway API on an existing cluster without ASM
21644-
update_enable_gateway_cmd = (
21645-
"aks update --resource-group={resource_group} --name={name} "
21646-
"--enable-gateway-api "
21647-
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/ManagedGatewayAPIPreview "
21648-
)
21649-
self.cmd(update_enable_gateway_cmd, expect_failure=True)
21650-
21651-
# Cleanup
21652-
delete_cmd = "aks delete --resource-group={resource_group} --name={name} --yes --no-wait"
21653-
self.cmd(delete_cmd, checks=[self.is_empty()])
21592+
# TODO (zheweihu): add test `test_aks_create_and_update_with_gateway_api_without_azureservicemesh`
21593+
# once https://msazure.visualstudio.com/CloudNativeCompute/_git/aks-rp/pullrequest/14404771 is rolled out

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 find_packages, setup
1111

12-
VERSION = "19.0.0b18"
12+
VERSION = "19.0.0b19"
1313

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

src/confcom/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Release History
77
++++++
88
* Added confcom containers from_image command to generate container definitions from an image reference
99

10+
1.5.1
11+
++++++
12+
* Bumped the Kata genpolicy version to gen4
13+
1014
1.5.0
1115
++++++
1216
* restored the behaviour of --upload-fragment in acifragmentgen to attach to first image in input

src/confcom/azext_confcom/kata_proxy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
_kata_binaries = {
2424
"Linux": {
2525
"path": _binaries_dir / "genpolicy-linux",
26-
"url": "https://github.com/microsoft/kata-containers/releases/download/3.2.0.azl3.genpolicy3/genpolicy",
27-
"sha256": "4cd497ca5e995ddacb53af4da47449c16291aea62e9f8b8ee0fe36ca8d41fe66",
26+
"url": "https://github.com/microsoft/kata-containers/releases/download/3.2.0.azl3.genpolicy4/genpolicy",
27+
"sha256": "8ce7b6d93809c2c999845986784e75a114af5c29e880c5ac90522e856c49b546",
2828
},
2929
"Windows": {
3030
"path": _binaries_dir / "genpolicy-windows.exe",
@@ -36,12 +36,12 @@
3636
_kata_data = [
3737
{
3838
"path": _data_dir / "genpolicy-settings.json",
39-
"url": "https://github.com/microsoft/kata-containers/releases/download/3.2.0.azl3.genpolicy3/genpolicy-settings.json", # pylint: disable=line-too-long
39+
"url": "https://github.com/microsoft/kata-containers/releases/download/3.2.0.azl3.genpolicy4/genpolicy-settings.json", # pylint: disable=line-too-long
4040
"sha256": "c38be1474b133d49800a43bd30c40e7585b5f302179a307f9c6d89f195daee94",
4141
},
4242
{
4343
"path": _data_dir / "rules.rego",
44-
"url": "https://github.com/microsoft/kata-containers/releases/download/3.2.0.azl3.genpolicy3/rules.rego",
44+
"url": "https://github.com/microsoft/kata-containers/releases/download/3.2.0.azl3.genpolicy4/rules.rego",
4545
"sha256": "2ca6c0e9617f97a922724112bd738fd73881d35b9ae5d31d573f0871d1ecf897",
4646
},
4747
]

src/devcenter/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
33
Release History
44
===============
5+
8.0.0
6+
++++++
7+
* Update control plane API to v2025-10-01-preview
8+
* Update data plane API to v2025-08-01-preview
9+
510
7.0.0
611
++++++
712
* Update control plane API to v2025-04-01-preview

src/devcenter/azext_devcenter/_help.py

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,22 @@
120120
"DevPool" --project-name "DevProject"
121121
"""
122122

123+
helps[
124+
"devcenter dev pool align"
125+
] = """
126+
type: command
127+
short-summary: "Aligns all dev boxes in the pool with the current configuration."
128+
examples:
129+
- name: Align using dev center
130+
text: |-
131+
az devcenter dev pool align --dev-center-name "ContosoDevCenter" --name \
132+
"DevPool" --project-name "DevProject" --targets NetworkProperties HibernateSupport
133+
- name: Align using endpoint
134+
text: |-
135+
az devcenter dev pool align --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --name \
136+
"DevPool" --project-name "DevProject" --targets NetworkProperties HibernateSupport
137+
"""
138+
123139
helps[
124140
"devcenter dev schedule"
125141
] = """
@@ -421,11 +437,11 @@
421437
- name: Align using dev center
422438
text: |-
423439
az devcenter dev dev-box align --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
424-
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
440+
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --targets NetworkProperties HibernateSupport
425441
- name: Align using endpoint
426442
text: |-
427443
az devcenter dev dev-box align --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
428-
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
444+
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --targets NetworkProperties HibernateSupport
429445
"""
430446

431447
helps[
@@ -453,11 +469,29 @@
453469
- name: Set active hours using dev center
454470
text: |-
455471
az devcenter dev dev-box set-active-hours --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
456-
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --time-zone "America/Los_Angeles" --start-time-hour "9" --end-time-hour "17"
472+
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --time-zone "America/Los_Angeles" --start-time-hour "9" --end-time-hour "17" \
473+
--days-of-week Monday Tuesday Wednesday Thursday Friday
457474
- name: Set active hours using endpoint
458475
text: |-
459476
az devcenter dev dev-box set-active-hours --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
460-
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --time-zone "America/Los_Angeles" --start-time-hour "9" --end-time-hour "17"
477+
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --time-zone "America/Los_Angeles" --start-time-hour "9" --end-time-hour "17" \
478+
--days-of-week Monday Tuesday Wednesday Thursday Friday
479+
"""
480+
481+
helps[
482+
"devcenter dev dev-box schedule-delete"
483+
] = """
484+
type: command
485+
short-summary: "Creates an action to schedule the deletion of a dev box"
486+
examples:
487+
- name: Schedule delete using dev center
488+
text: |-
489+
az devcenter dev dev-box schedule-delete --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
490+
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --delete-at "2027-12-31T23:59:00Z"
491+
- name: Schedule delete using endpoint
492+
text: |-
493+
az devcenter dev dev-box schedule-delete --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
494+
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --delete-at "2027-12-31T23:59:00Z"
461495
"""
462496

463497
helps[

0 commit comments

Comments
 (0)