Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (helm): add image.digest for container image pinning

Jim Brännlundd1c092f3b0d3
diff --git a/deploy/helm/templates/statefulset.yaml b/deploy/helm/templates/statefulset.yaml
index d1e6bee7..472e550c 100644
--- a/deploy/helm/templates/statefulset.yaml
+++ b/deploy/helm/templates/statefulset.yaml
@@ -45,7 +45,11 @@ spec:
{{- end }}
containers:
- name: {{ .Chart.Name }}
+ {{- if .Values.image.digest }}
+ image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
+ {{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
+ {{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.securityContext }}
securityContext:
diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml
index 06574c05..14e63ee1 100644
--- a/deploy/helm/values.yaml
+++ b/deploy/helm/values.yaml
@@ -4,6 +4,7 @@
image:
repository: databasus/databasus
tag: null
+ digest: ""
pullPolicy: Always
imagePullSecrets: []