Skip to content

Commit 6853844

Browse files
Laffs2k5minsiyang
authored andcommitted
feat: helm chart make docker-config secret optional
Making the docker-config secret optional allows the containers to boot even though the secret is not yet available. This enables use-cases like where a custom init container can be made responsible for creating the secret before the main snyk-monitor container is booted.
1 parent 0a843f7 commit 6853844

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snyk-monitor/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ spec:
191191
- name: docker-config
192192
secret:
193193
secretName: {{ .Values.monitorSecrets }}
194+
optional: true
194195
items:
195196
- key: dockercfg.json
196197
path: config.json
@@ -219,7 +220,7 @@ spec:
219220
projected:
220221
sources:
221222
- serviceAccountToken:
222-
path: token
223+
path: token
223224
{{- end }}
224225
- name: registries-conf
225226
configMap:

0 commit comments

Comments
 (0)