Skip to content

Commit c5789ae

Browse files
authored
Merge pull request #7865 from kruthika04/userAssignedIdentity
Added support for azure user assigned identity id
2 parents ee6f436 + ee21995 commit c5789ae

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.46.1
14+
version: 9.46.2

charts/cluster-autoscaler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ vpa:
438438
| azureTenantID | string | `""` | Azure tenant where the resources are located. Required if `cloudProvider=azure` |
439439
| azureUseManagedIdentityExtension | bool | `false` | Whether to use Azure's managed identity extension for credentials. If using MSI, ensure subscription ID, resource group, and azure AKS cluster name are set. You can only use one authentication method at a time, either azureUseWorkloadIdentityExtension or azureUseManagedIdentityExtension should be set. |
440440
| azureUseWorkloadIdentityExtension | bool | `false` | Whether to use Azure's workload identity extension for credentials. See the project here: https://github.com/Azure/azure-workload-identity for more details. You can only use one authentication method at a time, either azureUseWorkloadIdentityExtension or azureUseManagedIdentityExtension should be set. |
441+
| azureUserAssignedIdentityID | string | `""` | When vmss has multiple user assigned identity assigned, azureUserAssignedIdentityID specifies which identity to be used |
441442
| azureVMType | string | `"vmss"` | Azure VM type. |
442443
| civoApiKey | string | `""` | API key for the Civo API. Required if `cloudProvider=civo` |
443444
| civoApiUrl | string | `"https://api.civo.com"` | URL for the Civo API. Required if `cloudProvider=civo` |

charts/cluster-autoscaler/templates/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ spec:
185185
{{- else if .Values.azureUseManagedIdentityExtension }}
186186
- name: ARM_USE_MANAGED_IDENTITY_EXTENSION
187187
value: "true"
188+
- name: ARM_USER_ASSIGNED_IDENTITY_ID
189+
valueFrom:
190+
secretKeyRef:
191+
key: UserAssignedIdentityID
192+
name: {{ template "cluster-autoscaler.fullname" . }}
188193
{{- else }}
189194
- name: ARM_TENANT_ID
190195
valueFrom:

charts/cluster-autoscaler/templates/secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ data:
1818
SubscriptionID: "{{ .Values.azureSubscriptionID | b64enc }}"
1919
TenantID: "{{ .Values.azureTenantID | b64enc }}"
2020
VMType: "{{ .Values.azureVMType | b64enc }}"
21+
UserAssignedIdentityID: "{{ .Values.azureUserAssignedIdentityID | b64enc }}"
2122
{{- else if $isAws }}
2223
AwsAccessKeyId: "{{ .Values.awsAccessKeyID | b64enc }}"
2324
AwsSecretAccessKey: "{{ .Values.awsSecretAccessKey | b64enc }}"

charts/cluster-autoscaler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ azureTenantID: ""
101101
# azureUseManagedIdentityExtension -- Whether to use Azure's managed identity extension for credentials. If using MSI, ensure subscription ID, resource group, and azure AKS cluster name are set. You can only use one authentication method at a time, either azureUseWorkloadIdentityExtension or azureUseManagedIdentityExtension should be set.
102102
azureUseManagedIdentityExtension: false
103103

104+
# azureUserAssignedIdentityID -- When vmss has multiple user assigned identity assigned, azureUserAssignedIdentityID specifies which identity to be used
105+
azureUserAssignedIdentityID: ""
106+
104107
# azureUseWorkloadIdentityExtension -- Whether to use Azure's workload identity extension for credentials. See the project here: https://github.com/Azure/azure-workload-identity for more details. You can only use one authentication method at a time, either azureUseWorkloadIdentityExtension or azureUseManagedIdentityExtension should be set.
105108
azureUseWorkloadIdentityExtension: false
106109

0 commit comments

Comments
 (0)