diff --git a/contrib/helm/clair/templates/deployment.yaml b/contrib/helm/clair/templates/deployment.yaml index 0e22214c..8d3d6844 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.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} + {{- end }} {{- if .Values.tolerations }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} diff --git a/contrib/helm/clair/values.yaml b/contrib/helm/clair/values.yaml index 4897409f..c65574fa 100644 --- a/contrib/helm/clair/values.yaml +++ b/contrib/helm/clair/values.yaml @@ -55,6 +55,7 @@ config: - apk - dpkg - rpm +nodeSelector: {} tolerations: [] # Configuration values for the postgresql dependency.