Skip to content

Commit 40daf29

Browse files
authored
Merge pull request #14 from seenu433/crossplane-azure-wi
Added support for workload identity on the cross-azure-upbound chart
2 parents a62e3b7 + 649e9c3 commit 40daf29

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

charts/crossplane-azure-upbound/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.0.0
18+
version: 1.1.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/crossplane-azure-upbound/templates/provider-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ metadata:
1818
{{- end }}
1919
{{- end }}
2020
spec:
21-
{{- if and .spec.clientID .spec.tenantID .spec.subscriptionID }}
21+
{{- if and .spec.source .spec.clientID .spec.tenantID .spec.subscriptionID }}
2222
credentials:
23-
source: UserAssignedManagedIdentity
23+
source: {{ .spec.source }}
2424
clientID: {{ .spec.clientID }}
2525
subscriptionID: {{ .spec.subscriptionID }}
2626
tenantID: {{ .spec.tenantID }}

charts/crossplane-azure-upbound/templates/runtime-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ spec:
2525
{{ $key }}: {{ $value | quote }}
2626
{{- end }}
2727
{{- end }}
28+
{{- if .spec.serviceAccountTemplate.metadata.annotations }}
2829
annotations:
2930
{{- range $key, $value := .spec.serviceAccountTemplate.metadata.annotations }}
3031
{{ $key }}: {{ $value | quote }}
3132
{{- end }}
33+
{{- end }}
3234
name: {{ .spec.serviceAccountTemplate.metadata.name }}
3335
deploymentTemplate:
3436
{{- .spec.deploymentTemplate | toYaml | nindent 4 }}

charts/crossplane-azure-upbound/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ global:
44
deploymentRuntimeConfig:
55
enabled: false
66
metadata:
7-
name: "upbound-azure-runtime-config"
7+
name: "default"
88
role_arn: ""
99
annotations: {}
1010
labels:
@@ -17,7 +17,7 @@ deploymentRuntimeConfig:
1717
metadata:
1818
annotations: {}
1919
labels:
20-
azure.workload.identity/use: true
20+
azure.workload.identity/use: "true"
2121
spec:
2222
containers:
2323
- name: package-runtime
@@ -29,6 +29,7 @@ deploymentRuntimeConfig:
2929
metadata:
3030
annotations: {}
3131
labels:
32+
azure.workload.identity/use: "true"
3233
name: azure-provider
3334

3435
provider:

0 commit comments

Comments
 (0)