feat(chart): add imagePullSecrets support

Signed-off-by: Elliot Maincourt <e.maincourt@gmail.com>
This commit is contained in:
Elliot Maincourt 2022-03-10 14:18:35 +01:00
parent 60d442c3ec
commit 063a894efa
1 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,10 @@ spec:
labels:
control-plane: controller-manager
spec:
{{- with (.Values.manager.imagePullSecrets | default .Values.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- args:
- --enable-leader-election
@ -157,6 +161,10 @@ spec:
labels:
control-plane: daemon
spec:
{{- with (.Values.manager.imagePullSecrets | default .Values.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.daemon.affinity }}
affinity:
{{ toYaml .Values.daemon.affinity | indent 8 }}