Skip to content

Commit

Permalink
Skip for non connectedClusters
Browse files Browse the repository at this point in the history
Signed-off-by: nshankar13 <[email protected]>
  • Loading branch information
nshankar13 committed Jul 21, 2022
1 parent c5c48ac commit fb6c38e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)

Expand Down

0 comments on commit fb6c38e

Please sign in to comment.