Skip to content

Commit

Permalink
Fix osm-arc version check for CI tags (Azure#244)
Browse files Browse the repository at this point in the history
Signed-off-by: nshankar <[email protected]>
Co-authored-by: nshankar <[email protected]>
  • Loading branch information
nshankar13 and nshankar authored Aug 2, 2023
1 parent 980d53b commit 29f1210
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 29f1210

Please sign in to comment.