Improve helm chart allowing for lock of the worker image

This commit is contained in:
2025-01-13 13:59:18 +00:00
parent 1f8236d396
commit 5649c2863c
6 changed files with 49 additions and 29 deletions
+3 -7
View File
@@ -51,12 +51,8 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
Get the worker image
*/}}
{{- define "chart.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "chart.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- define "chart.workerImage" -}}
{{- printf "%s:%s" .Values.images.worker.repository .Values.images.worker.tag }}
{{- end }}