Skip to content

Commit

Permalink
HELM: add option for tolerations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Knurek committed Dec 10, 2018
1 parent 504f0f3 commit 6a94d8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/helm/clair/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: clair
home: https://coreos.com/clair
version: 0.1.0
version: 0.1.1
appVersion: 3.0.0-pre
description: Clair is an open source project for the static analysis of vulnerabilities in application containers.
icon: https://cloud.githubusercontent.com/assets/343539/21630811/c5081e5c-d202-11e6-92eb-919d5999c77a.png
Expand Down
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.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions contrib/helm/clair/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ config:
- apk
- dpkg
- rpm
tolerations: []

# Configuration values for the postgresql dependency.
# ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
postgresql:
Expand Down

0 comments on commit 6a94d8c

Please sign in to comment.