From 5c3f2e66fd6ffb6da7b2c4c019347ddf95ae9187 Mon Sep 17 00:00:00 2001 From: Alvaro Reina Date: Mon, 29 Apr 2024 14:03:04 +0200 Subject: [PATCH] added imagePullSecrets support --- .../infisical-standalone-postgres/templates/infisical.yaml | 4 ++++ .../templates/schema-migration-job.yaml | 4 ++++ helm-charts/infisical-standalone-postgres/values.yaml | 1 + 3 files changed, 9 insertions(+) diff --git a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml index 6c022c005..fcfe4acee 100644 --- a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml +++ b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml @@ -29,6 +29,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- if $infisicalValues.imagePullSecrets }} + imagePullSecrets: + {{- toYaml $infisicalValues.imagePullSecrets | nindent 6 }} + {{- end }} {{- if $infisicalValues.autoDatabaseSchemaMigration }} initContainers: - name: "migration-init" diff --git a/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml b/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml index d504d51aa..06c00368f 100644 --- a/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml +++ b/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml @@ -16,6 +16,10 @@ spec: app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: + {{- if $infisicalValues.imagePullSecrets }} + imagePullSecrets: + {{- toYaml $infisicalValues.imagePullSecrets | nindent 6 }} + {{- end }} restartPolicy: OnFailure containers: - name: infisical-schema-migration diff --git a/helm-charts/infisical-standalone-postgres/values.yaml b/helm-charts/infisical-standalone-postgres/values.yaml index d4297ebda..2f1703fb9 100644 --- a/helm-charts/infisical-standalone-postgres/values.yaml +++ b/helm-charts/infisical-standalone-postgres/values.yaml @@ -14,6 +14,7 @@ infisical: repository: infisical/infisical tag: "v0.46.3-postgres" pullPolicy: IfNotPresent + imagePullSecrets: [] affinity: {} kubeSecretRef: "infisical-secrets"