Allow ignoring secret creating errors to preserve _some_ k8s functionality in case of issues

This commit is contained in:
Martin Šalata
2021-04-03 13:38:21 +02:00
parent 9219b83a9b
commit 7b2c52406e
4 changed files with 14 additions and 5 deletions
@@ -42,6 +42,8 @@ spec:
value: {{ .Values.imagepullsecretInjector.dockerconfigjsonRef.secretName | quote }}
- name: CONFIG_SOURCE_IMAGE_PULL_SECRET_NAMESPACE
value: {{ .Values.imagepullsecretInjector.dockerconfigjsonRef.secretNamespace | default .Release.Namespace | quote }}
- name: CONFIG_IGNORE_SECRET_CREATION_ERROR
value: {{ .Values.imagepullsecretInjector.ignoreSecretCreationError | quote }}
- name: CONFIG_ALL_SERVICE_ACCOUNTS
value: {{ .Values.imagepullsecretInjector.allSaNames | quote }}
volumeMounts:
+1 -1
View File
@@ -16,7 +16,7 @@ imagepullsecretInjector:
secretNamespace: ""
targetSecretName: my-cool-secret
ignoreSecretCreationError: false
allSaNames: false
saNames:
- default