Skip to content

Commit a7357ad

Browse files
committed
feat(druid): support registry for PostgreSQL S3 backup image
Signed-off-by: Arthur Le Roux <[email protected]>
1 parent d275539 commit a7357ad

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

charts/druid/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
description: Apache Druid is a high performance real-time analytics database.
33
name: druid
44
type: application
5-
version: 1.21.0
5+
version: 1.22.0
66
appVersion: 29.0.1
77
home: https://druid.apache.org/
88
icon: https://druid.apache.org/img/favicon.png

charts/druid/templates/_helpers.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,15 @@ Create the name of the router service account
237237
{{- default "default" .Values.router.serviceAccount.name }}
238238
{{- end }}
239239
{{- end }}
240+
241+
242+
{{/*
243+
Create the name of the router service account
244+
*/}}
245+
{{- define "druid.postgresql-s3-backup.image" -}}
246+
{{- if .Values.postgresql.image.registry }}
247+
{{ .Values.postgresql.image.registry }}/{{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}
248+
{{- else }}
249+
{{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}
250+
{{- end }}
251+
{{- end -}}

charts/druid/templates/postgresql-s3-backup/cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
{{- end }}
4242
containers:
4343
- name: job
44-
image: {{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}
44+
image: {{ include "druid.postgresql-s3-backup.image" . }}
4545
command: [ "/bin/bash" ]
4646
args: [ "/backup.sh" ]
4747
envFrom:

0 commit comments

Comments
 (0)