feat(dispatch): add pull secret

This commit is contained in:
Tommy 2024-06-24 14:31:21 +02:00
parent f0c673f5ae
commit 81f376d323
No known key found for this signature in database
6 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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 }}

View file

@ -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:

View file

@ -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 }}

View file

@ -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 }}

View file

@ -3,6 +3,7 @@ envFromSecret: dispatch-secret
image:
repository: ghcr.io/tommy-skaug/dispatch
pullPolicy: Always
pullSecret: dispatch-pull-secret
initContainers:
dbInit: