Skip to content

Commit

Permalink
HELM: also add option for nodeSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Knurek committed Dec 10, 2018
1 parent 6a94d8c commit 81430ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/helm/clair/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
- name: "{{ .Chart.Name }}-config"
secret:
secretName: {{ template "clair.fullname" . }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
Expand Down
1 change: 1 addition & 0 deletions contrib/helm/clair/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ config:
- apk
- dpkg
- rpm
nodeSelector: {}
tolerations: []

# Configuration values for the postgresql dependency.
Expand Down

0 comments on commit 81430ff

Please sign in to comment.