Skip to content

Commit d503a9a

Browse files
committed
fix a bug with asm ingress gateway
1 parent 7639c81 commit d503a9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

+4
Original file line numberDiff line numberDiff line change
@@ -2205,6 +2205,8 @@ def _handle_egress_gateways_asm(self, new_profile: ServiceMeshProfile) -> Tuple[
22052205
# if a gateway is enabled, enable the mesh
22062206
if enable_egress_gateway:
22072207
new_profile.mode = CONST_AZURE_SERVICE_MESH_MODE_ISTIO
2208+
if new_profile.istio is None:
2209+
new_profile.istio = self.models.IstioServiceMesh() # pylint: disable=no-member
22082210
updated = True
22092211

22102212
# ensure necessary fields
@@ -2259,6 +2261,8 @@ def _handle_ingress_gateways_asm(self, new_profile: ServiceMeshProfile) -> Tuple
22592261
# if an ingress gateway is enabled, enable the mesh
22602262
if enable_ingress_gateway:
22612263
new_profile.mode = CONST_AZURE_SERVICE_MESH_MODE_ISTIO
2264+
if new_profile.istio is None:
2265+
new_profile.istio = self.models.IstioServiceMesh() # pylint: disable=no-member
22622266
updated = True
22632267

22642268
if not ingress_gateway_type:

0 commit comments

Comments
 (0)