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 ec7738cdb92..2853f2a42d5 100644 --- a/src/k8s-extension/azext_k8s_extension/partner_extensions/OpenServiceMesh.py +++ b/src/k8s-extension/azext_k8s_extension/partner_extensions/OpenServiceMesh.py @@ -71,7 +71,6 @@ 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) @@ -104,7 +103,10 @@ def _validate_tested_distro(cmd, cluster_resource_group_name, cluster_name, exte extension_version = tags[len(tags) - 1] - if version.parse(str(extension_version)) <= version.parse("0.8.3"): + ext_str = str(extension_version) + + # Don't parse version for test and CI tags + if "pr" not in ext_str and "release" not in ext_str and version.parse(ext_str) <= version.parse("0.8.3"): logger.warning(field_unavailable_error) return