From 1b4f5335660cb144c2d0e03424e16978f2448122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20L=C3=BChr?= Date: Tue, 22 Mar 2022 10:48:56 +0100 Subject: [PATCH 1/2] charts/timescaledb-single: add imagePullSecrets to values.yml --- charts/timescaledb-single/values.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charts/timescaledb-single/values.yaml b/charts/timescaledb-single/values.yaml index a907b1bb..69bdc2a1 100644 --- a/charts/timescaledb-single/values.yaml +++ b/charts/timescaledb-single/values.yaml @@ -23,6 +23,11 @@ image: tag: pg13.4-ts2.4.2-p0 pullPolicy: Always +# If you pull the image from a private repository you need to create an image pull secret +# https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ +# imagePullSecrets: +# - name: registry-credentials + # By default those secrets are randomly generated. # To prevent misconfiguration, modifications from helm upgrade won't be applied to those secrets. # As a result changing secrets cannot be done via helm and need manual intervention. From 1df3941068ab117357c075ceb01ee337605da726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20L=C3=BChr?= Date: Tue, 22 Mar 2022 10:52:04 +0100 Subject: [PATCH 2/2] charts/timescaledb-single: add imagePullSecrets to statefulset-timescaledb.yaml for the StatefulSet --- .../timescaledb-single/templates/statefulset-timescaledb.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml index 9f32fcf3..3ae585ac 100644 --- a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml +++ b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml @@ -41,6 +41,10 @@ spec: runAsGroup: {{ template "postgres.uid" }} runAsNonRoot: true runAsUser: {{ template "postgres.uid" }} +{{- if .Values.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.imagePullSecrets | indent 6 }} +{{- end }} initContainers: {{- if .Values.timescaledbTune.enabled }} - name: tstune