Skip to content

Commit 5986eca

Browse files
bump chart version to 0.5.3-azure-test-15 and update job.yaml for Azure workload identity and secrets management
1 parent ca25162 commit 5986eca

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

helm-chart/eoapi/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ kubeVersion: ">=1.23.0-0"
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: "0.5.3-azure-test-14"
18+
version: "0.5.3-azure-test-15"
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

helm-chart/eoapi/templates/pgstacboostrap/job.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ spec:
1111
metadata:
1212
labels:
1313
app: {{ include "eoapi.pgstacHostName" . | nindent 14 }}
14+
{{- if .Values.azure.serviceAccount.create }}
15+
azure.workload.identity/use: "true"
16+
{{- end }}
1417
spec:
1518
restartPolicy: Never
1619
containers:
@@ -32,12 +35,22 @@ spec:
3235
name: initdb-sh-volume-{{ $.Release.Name }}
3336
- mountPath: /opt/initdb/python-scripts
3437
name: pgstac-setup-volume-{{ $.Release.Name }}
38+
{{- if .Values.azure.aksSecretsProviderAvailable }}
39+
- name: pgstac-secrets-{{ $.Release.Name }}
40+
mountPath: /mnt/secrets-store
41+
readOnly: true
42+
{{- end }}
3543
env:
3644
- name: LOAD_FIXTURES
3745
value: {{ .Values.pgstacBootstrap.settings.envVars.LOAD_FIXTURES | quote }}
3846
- name: KEEP_ALIVE
3947
value: {{ .Values.pgstacBootstrap.settings.envVars.KEEP_ALIVE | quote }}
4048
{{ include "eoapi.pgstacSecrets" . | nindent 12 }}
49+
{{- if $.Values.azure.aksSecretsProviderAvailable }}
50+
envFrom:
51+
- secretRef:
52+
name: pgstac-secrets-{{ $.Release.Name }}
53+
{{- end }}
4154
volumes:
4255
- name: initdb-sql-volume-{{ $.Release.Name }}
4356
configMap:
@@ -51,6 +64,17 @@ spec:
5164
- name: pgstac-setup-volume-{{ $.Release.Name }}
5265
configMap:
5366
name: pgstac-setup-config-{{ $.Release.Name }}
67+
{{- if $.Values.azure.aksSecretsProviderAvailable }}
68+
- name: pgstac-secrets-{{ $.Release.Name }}
69+
csi:
70+
driver: secrets-store.csi.k8s.io
71+
readOnly: true
72+
volumeAttributes:
73+
secretProviderClass: azure-secret-provider-{{ $.Release.Name }}
74+
{{- end }}
75+
{{- if .Values.azure.serviceAccount.create }}
76+
serviceAccountName: {{ .Values.azure.serviceAccount.name }}
77+
{{- end }}
5478
{{- with .Values.pgstacBootstrap.settings.affinity }}
5579
affinity:
5680
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)