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 apiVersion: v2
name: dispatch name: dispatch
description: Netflix Dispatch incident management system description: Netflix Dispatch incident management system
version: 0.5.0 version: 0.5.1
appVersion: v20240605 appVersion: v20240605
maintainers: maintainers:
- name: Tommy Skaug - name: Tommy Skaug

View file

@ -22,6 +22,10 @@ spec:
- secretRef: - secretRef:
name: {{ .Values.postgres.secretName }} name: {{ .Values.postgres.secretName }}
containers: containers:
{{ if ne .Values.image.pullSecret "" }}
imagePullSecrets:
- name: "{{ .Values.image.pullSecret }}"
{{ end }}
- name: core - name: core
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}

View file

@ -12,6 +12,10 @@ spec:
spec: spec:
restartPolicy: Never restartPolicy: Never
containers: containers:
{{ if ne .Values.image.pullSecret "" }}
imagePullSecrets:
- name: "{{ .Values.image.pullSecret }}"
{{ end }}
- name: general-db-init - name: general-db-init
image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}" image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}"
envFrom: envFrom:

View file

@ -16,6 +16,10 @@ spec:
app: {{ include "dispatch.fullname" . }}-scheduler app: {{ include "dispatch.fullname" . }}-scheduler
spec: spec:
containers: containers:
{{ if ne .Values.image.pullSecret "" }}
imagePullSecrets:
- name: "{{ .Values.image.pullSecret }}"
{{ end }}
- name: scheduler - name: scheduler
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}

View file

@ -47,6 +47,10 @@ spec:
envFrom: *envFrom envFrom: *envFrom
containers: containers:
{{ if ne .Values.image.pullSecret "" }}
imagePullSecrets:
- name: "{{ .Values.image.pullSecret }}"
{{ end }}
- name: web - name: web
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}

View file

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