diff --git a/charts/dispatch/Chart.yaml b/charts/dispatch/Chart.yaml index 3b49305..484c675 100644 --- a/charts/dispatch/Chart.yaml +++ b/charts/dispatch/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: dispatch description: Netflix Dispatch incident management system -version: 0.5.0 +version: 0.5.1 appVersion: v20240605 maintainers: - name: Tommy Skaug diff --git a/charts/dispatch/templates/core-deployment.yaml b/charts/dispatch/templates/core-deployment.yaml index c7421ba..871c96a 100644 --- a/charts/dispatch/templates/core-deployment.yaml +++ b/charts/dispatch/templates/core-deployment.yaml @@ -22,6 +22,10 @@ spec: - secretRef: name: {{ .Values.postgres.secretName }} containers: + {{ if ne .Values.image.pullSecret "" }} + imagePullSecrets: + - name: "{{ .Values.image.pullSecret }}" + {{ end }} - name: core image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/charts/dispatch/templates/dispatch-db-init.yaml b/charts/dispatch/templates/dispatch-db-init.yaml index f17646d..ed86cbf 100644 --- a/charts/dispatch/templates/dispatch-db-init.yaml +++ b/charts/dispatch/templates/dispatch-db-init.yaml @@ -12,6 +12,10 @@ spec: spec: restartPolicy: Never containers: + {{ if ne .Values.image.pullSecret "" }} + imagePullSecrets: + - name: "{{ .Values.image.pullSecret }}" + {{ end }} - name: general-db-init image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}" envFrom: diff --git a/charts/dispatch/templates/scheduler-deployment.yaml b/charts/dispatch/templates/scheduler-deployment.yaml index 452063f..75c2253 100644 --- a/charts/dispatch/templates/scheduler-deployment.yaml +++ b/charts/dispatch/templates/scheduler-deployment.yaml @@ -16,6 +16,10 @@ spec: app: {{ include "dispatch.fullname" . }}-scheduler spec: containers: + {{ if ne .Values.image.pullSecret "" }} + imagePullSecrets: + - name: "{{ .Values.image.pullSecret }}" + {{ end }} - name: scheduler image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/charts/dispatch/templates/web-deployment.yaml b/charts/dispatch/templates/web-deployment.yaml index fd0bd4e..a31288d 100644 --- a/charts/dispatch/templates/web-deployment.yaml +++ b/charts/dispatch/templates/web-deployment.yaml @@ -47,6 +47,10 @@ spec: envFrom: *envFrom containers: + {{ if ne .Values.image.pullSecret "" }} + imagePullSecrets: + - name: "{{ .Values.image.pullSecret }}" + {{ end }} - name: web image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/charts/dispatch/values.yaml b/charts/dispatch/values.yaml index aa446c3..b2cf3df 100644 --- a/charts/dispatch/values.yaml +++ b/charts/dispatch/values.yaml @@ -3,6 +3,7 @@ envFromSecret: dispatch-secret image: repository: ghcr.io/tommy-skaug/dispatch pullPolicy: Always + pullSecret: dispatch-pull-secret initContainers: dbInit: