mirror of https://git.rancher.io/charts
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
--- charts-original/templates/deployment.yaml
|
|
+++ charts/templates/deployment.yaml
|
|
@@ -41,7 +41,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
|
|
@@ -105,8 +105,10 @@
|
|
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 }}
|
|
@@ -114,8 +116,10 @@
|
|
securityContext:
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
{{- end }}
|
|
- 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 }}
|