Skip to content

Commit 2640aa0

Browse files
Fix datapath acceleration mode
1 parent d3a1ab5 commit 2640aa0

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Pending
1414
* Fix `--localdns-config` parameter to handle null values in JSON configuration files gracefully, preventing crashes when DNS override sections are null.
1515
* Add jwtauthenticator commands `az aks jwtauthenticator add/update/show/list/delete` to manage JWT authenticators for a managed cluster.
1616

17+
18.0.0b41
18+
+++++++
19+
* Fix an issue in disabling ACNS performance (--acns-datapath-acceleration-mode None).
20+
1721
18.0.0b40
1822
+++++++
1923
* Add option `Windows2025` to `--os-sku` for `az aks nodepool add`.

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3180,7 +3180,7 @@ def set_up_network_profile(self, mc: ManagedCluster) -> ManagedCluster:
31803180
if acns.security.transit_encryption is None:
31813181
acns.security.transit_encryption = self.models.AdvancedNetworkingSecurityTransitEncryption()
31823182
acns.security.transit_encryption.type = acns_transit_encryption_type
3183-
if acns_datapath_acceleration_mode == CONST_ACNS_DATAPATH_ACCELERATION_MODE_BPFVETH:
3183+
if acns_datapath_acceleration_mode is not None:
31843184
if acns.performance is None:
31853185
acns.performance = self.models.AdvancedNetworkingPerformance()
31863186
acns.performance.acceleration_mode = acns_datapath_acceleration_mode
@@ -4434,7 +4434,7 @@ def update_acns_in_network_profile(self, mc: ManagedCluster) -> ManagedCluster:
44344434
if acns.security.transit_encryption is None:
44354435
acns.security.transit_encryption = self.models.AdvancedNetworkingSecurityTransitEncryption()
44364436
acns.security.transit_encryption.type = acns_transit_encryption_type
4437-
if acns_datapath_acceleration_mode == CONST_ACNS_DATAPATH_ACCELERATION_MODE_BPFVETH:
4437+
if acns_datapath_acceleration_mode is not None:
44384438
if acns.performance is None:
44394439
acns.performance = self.models.AdvancedNetworkingPerformance()
44404440
acns.performance.acceleration_mode = acns_datapath_acceleration_mode

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14682,6 +14682,21 @@ def test_aks_create_with_acns_performance(
1468214682
],
1468314683
)
1468414684

14685+
# Update transit encryption type to WireGuard and advanced network policies to L7
14686+
update_cmd = (
14687+
"aks update --resource-group={resource_group} --name={name} "
14688+
"--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AdvancedNetworkingPerformancePreview "
14689+
"--enable-acns --acns-datapath-acceleration-mode None"
14690+
)
14691+
14692+
self.cmd(
14693+
update_cmd,
14694+
checks=[
14695+
self.check("provisioningState", "Succeeded"),
14696+
self.check("networkProfile.advancedNetworking.performance.accelerationMode", "BpfVeth"),
14697+
],
14698+
)
14699+
1468514700
# delete
1468614701
self.cmd(
1468714702
"aks delete -g {resource_group} -n {name} --yes --no-wait",

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 = "18.0.0b40"
12+
VERSION = "18.0.0b41"
1313

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

0 commit comments

Comments
 (0)