From 6a94d8ccd267cc428dd2161bb1e5b71dd3cd244f Mon Sep 17 00:00:00 2001 From: Jeff Knurek Date: Mon, 10 Dec 2018 11:42:16 +0100 Subject: [PATCH] HELM: add option for tolerations --- contrib/helm/clair/Chart.yaml | 2 +- contrib/helm/clair/templates/deployment.yaml | 4 ++++ contrib/helm/clair/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/helm/clair/Chart.yaml b/contrib/helm/clair/Chart.yaml index 4e76d1c1..888665e6 100644 --- a/contrib/helm/clair/Chart.yaml +++ b/contrib/helm/clair/Chart.yaml @@ -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 diff --git a/contrib/helm/clair/templates/deployment.yaml b/contrib/helm/clair/templates/deployment.yaml index 8bbe297f..0e22214c 100644 --- a/contrib/helm/clair/templates/deployment.yaml +++ b/contrib/helm/clair/templates/deployment.yaml @@ -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 }}" diff --git a/contrib/helm/clair/values.yaml b/contrib/helm/clair/values.yaml index b58b94fb..4897409f 100644 --- a/contrib/helm/clair/values.yaml +++ b/contrib/helm/clair/values.yaml @@ -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: