Skip to content

Commit fab0ae9

Browse files
committed
fix(acns): npe issue for acns transit encryption flag
Signed-off-by: Quang Nguyen <nguyenquang@microsoft.com>
1 parent b8c3eca commit fab0ae9

File tree

6 files changed

+7494
-3
lines changed

6 files changed

+7494
-3
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
18.0.0b14
16+
+++++++
17+
* Fixed NPE issue for `--acns-transit-encryption-type`.
18+
1519
18.0.0b13
1620
+++++++
1721
* Add option `--enable-http-proxy` to `az aks update`.

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,9 @@ def set_up_network_profile(self, mc: ManagedCluster) -> ManagedCluster:
30283028
)
30293029
)
30303030
else:
3031-
acns.security.transit_encryption.type = acns_transit_encryption_type
3031+
acns.security.transit_encryption = self.models.AdvancedNetworkingSecurityTransitEncryption(
3032+
type=acns_transit_encryption_type
3033+
)
30323034
network_profile.advanced_networking = acns
30333035
return mc
30343036

@@ -4127,7 +4129,9 @@ def update_acns_in_network_profile(self, mc: ManagedCluster) -> ManagedCluster:
41274129
)
41284130
)
41294131
else:
4130-
acns.security.transit_encryption.type = acns_transit_encryption_type
4132+
acns.security.transit_encryption = self.models.AdvancedNetworkingSecurityTransitEncryption(
4133+
type=acns_transit_encryption_type
4134+
)
41314135
mc.network_profile.advanced_networking = acns
41324136
return mc
41334137

0 commit comments

Comments
 (0)