Skip to content

Commit

Permalink
Do not create identity with appliances (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Dec 13, 2021
1 parent 00e540c commit 2ebd9c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/k8s-extension/azext_k8s_extension/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,11 @@ def __create_identity(cmd, resource_group_name, cluster_name, cluster_type):
subscription_id = get_subscription_id(cmd.cli_ctx)
resources = cf_resources(cmd.cli_ctx, subscription_id)

if cluster_type.lower() == consts.MANAGED_CLUSTER_TYPE:
# We do not create any identities for managedClusters or appliances
if (
cluster_type.lower() == consts.MANAGED_CLUSTER_TYPE
or cluster_type.lower() == consts.APPLIANCE_TYPE
):
return None, None

cluster_rp, parent_api_version = get_cluster_rp_api_version(cluster_type)
Expand Down

0 comments on commit 2ebd9c4

Please sign in to comment.