Skip to content

Commit

Permalink
osm-ext: enable system identities
Browse files Browse the repository at this point in the history
* default enables system identities
* upgrades api-version

Signed-off-by: Sanya Kochhar <kochhars@microsoft.com>
  • Loading branch information
SanyaKochhar committed Mar 8, 2022
1 parent ff845c7 commit 67c04b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def Create(self, cmd, client, resource_group_name, cluster_name, name, cluster_t
ext_scope = Scope(cluster=scope_cluster, namespace=None)

# NOTE-2: Return a valid Extension object, Instance name and flag for Identity
create_identity = False
create_identity = True

_validate_tested_distro(cmd, resource_group_name, cluster_name, version)

Expand Down Expand Up @@ -83,7 +83,7 @@ def _validate_tested_distro(cmd, cluster_resource_group_name, cluster_name, exte
cluster_resource_id = '/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Kubernetes' \
'/connectedClusters/{2}'.format(subscription_id, cluster_resource_group_name, cluster_name)

resource = resources.get_by_id(cluster_resource_id, '2020-01-01-preview')
resource = resources.get_by_id(cluster_resource_id, '2021-10-01')
cluster_distro = resource.properties['distribution'].lower()

if cluster_distro == "general":
Expand Down

0 comments on commit 67c04b9

Please sign in to comment.