--- charts-original/templates/deployment.yaml +++ charts/templates/deployment.yaml @@ -40,7 +40,7 @@ {{- end}} containers: - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - /adapter @@ -102,13 +102,17 @@ name: volume-serving-cert readOnly: true {{- end }} - nodeSelector: - {{- toYaml .Values.nodeSelector | nindent 8 }} + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} +{{- if .Values.nodeSelector }} +{{- toYaml .Values.nodeSelector | nindent 8 }} +{{- end }} affinity: {{- toYaml .Values.affinity | nindent 8 }} priorityClassName: {{ .Values.priorityClassName }} - tolerations: - {{- toYaml .Values.tolerations | nindent 8 }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} +{{- if .Values.tolerations }} +{{- toYaml .Values.tolerations | nindent 8 }} +{{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: {{- range .Values.image.pullSecrets }}