Skip to content

Commit

Permalink
{AKS} Fix the test failure of network isolated cluster feature
Browse files Browse the repository at this point in the history
  • Loading branch information
bingosummer committed Nov 10, 2024
1 parent f52ad8c commit 61b5b68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ If there is no rush to release a new version, please just add a description of t

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.

Pending
+++++++
* Fix the test failure of network isolated cluster feature.

13.0.0b1
+++++++
* [BREAKING CHANGE]: `az aks trustedaccess rolebinding create`: Remove deprecated `-r` and `-s` options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14899,7 +14899,7 @@ def test_aks_create_cluster_with_taints(self, resource_group, resource_group_loc
name_prefix="clitest",
location="westcentralus",
)
def test_aks_artifact_source(self, resource_group, resource_group_location):
def test_aks_network_isolated_cluster(self, resource_group, resource_group_location):
vnet_name = self.create_random_name("clitest", 16)
aks_subnet_name = "aks-subnet"
acr_subnet_name = "acr-subnet"
Expand Down Expand Up @@ -15076,13 +15076,15 @@ def test_aks_artifact_source(self, resource_group, resource_group_location):
)
self.cmd(create_role_assignment_cmd)

# create AKS cluster to use Cache as artifact source
# create AKS cluster to enable network isolated cluster
create_cmd_1 = (
"aks create --resource-group {resource_group} --name {aks_name_1} -c 1 --ssh-key-value={ssh_key_value} "
"-k 1.30 "
"--network-plugin kubenet --vnet-subnet-id {vnet_id}/subnets/{aks_subnet_name} "
"--assign-identity {cluster_identity_id} "
"--assign-kubelet-identity {kubelet_identity_id} "
"--bootstrap-artifact-source Cache --bootstrap-container-registry-resource-id {acr_id} "
"--outbound-type=block "
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NetworkIsolatedClusterPreview "
"-o json"
)
Expand All @@ -15095,6 +15097,7 @@ def test_aks_artifact_source(self, resource_group, resource_group_location):
# create AKS cluster to use Direct as artifact source
create_cmd_2 = (
"aks create --resource-group {resource_group} --name {aks_name_2} -c 1 --ssh-key-value={ssh_key_value} "
"-k 1.30 "
"--network-plugin kubenet --vnet-subnet-id {vnet_id}/subnets/{aks_subnet_name} "
"--assign-identity {cluster_identity_id} "
"--assign-kubelet-identity {kubelet_identity_id} "
Expand All @@ -15108,6 +15111,7 @@ def test_aks_artifact_source(self, resource_group, resource_group_location):
update_cmd = (
"aks update --resource-group {resource_group} --name {aks_name_2} "
"--bootstrap-artifact-source Cache --bootstrap-container-registry-resource-id {acr_id} "
"--outbound-type=block "
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/NetworkIsolatedClusterPreview "
"-o json"
)
Expand Down

0 comments on commit 61b5b68

Please sign in to comment.