From fb6c38e24acd16fbf9ae3727ff3dc0cc0809b2d6 Mon Sep 17 00:00:00 2001 From: nshankar13 Date: Wed, 13 Jul 2022 14:17:57 -0400 Subject: [PATCH] Skip for non connectedClusters Signed-off-by: nshankar13 --- .../azext_k8s_extension/partner_extensions/OpenServiceMesh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/k8s-extension/azext_k8s_extension/partner_extensions/OpenServiceMesh.py b/src/k8s-extension/azext_k8s_extension/partner_extensions/OpenServiceMesh.py index b1ad6694530..7b02f0e4336 100644 --- a/src/k8s-extension/azext_k8s_extension/partner_extensions/OpenServiceMesh.py +++ b/src/k8s-extension/azext_k8s_extension/partner_extensions/OpenServiceMesh.py @@ -52,7 +52,8 @@ def Create(self, cmd, client, resource_group_name, cluster_name, name, cluster_t # NOTE-2: Return a valid Extension object, Instance name and flag for Identity create_identity = True - _validate_tested_distro(cmd, resource_group_name, cluster_name, version, release_train) + if cluster_type == "connectedClusters": + _validate_tested_distro(cmd, resource_group_name, cluster_name, version, release_train) extension = Extension( extension_type=extension_type, @@ -70,6 +71,7 @@ def Create(self, cmd, client, resource_group_name, cluster_name, name, cluster_t def _validate_tested_distro(cmd, cluster_resource_group_name, cluster_name, extension_version, extension_release_train): + logger.warning("Running validated distros...") field_unavailable_error = '\"testedDistros\" field unavailable for version {0} of microsoft.openservicemesh, ' \ 'cannot determine if this Kubernetes distribution has been properly tested'.format(extension_version)