Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/temporal/templates/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ spec:
resources:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with $.Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 4 }}
{{- end }}
restartPolicy: Never
12 changes: 12 additions & 0 deletions charts/temporal/tests/test_pod_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ tests:
- equal:
path: metadata.annotations["helm.sh/hook"]
value: test
- it: does not set imagePullSecrets by default
asserts:
- notExists:
path: spec.imagePullSecrets
- it: sets imagePullSecrets when specified
set:
imagePullSecrets:
- name: my-registry-secret
asserts:
- equal:
path: spec.imagePullSecrets[0].name
value: my-registry-secret
Loading