Skip to content
Open
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/rancher-webhook/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
secret:
secretName: client-ca
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 6 }}
{{- end }}
{{- if .Values.global.hostNetwork }}
hostNetwork: true
{{- end }}
Expand Down
9 changes: 9 additions & 0 deletions charts/rancher-webhook/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ templates:
- deployment.yaml

tests:
- it: should render imagePullSecrets when set
set:
imagePullSecrets:
- name: my-secret
asserts:
- contains:
path: spec.template.spec.imagePullSecrets
content:
name: my-secret
- it: should set webhook default port values
asserts:
- equal:
Expand Down
2 changes: 2 additions & 0 deletions charts/rancher-webhook/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ global:
mcm:
enabled: true

imagePullSecrets: []

# tolerations for the webhook deployment. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ for more info
tolerations: []
nodeSelector: {}
Expand Down