diff --git a/charts/scheduler/templates/scheduler-deployment.yaml b/charts/scheduler/templates/scheduler-deployment.yaml index 48151b4..abe1af6 100644 --- a/charts/scheduler/templates/scheduler-deployment.yaml +++ b/charts/scheduler/templates/scheduler-deployment.yaml @@ -22,11 +22,11 @@ spec: - /scheduler - --leader-elect=false - --config=/etc/kubernetes/kube-scheduler/scheduler-config.yaml - { { - if ge .Capabilities.KubeVersion.Minor "22" } } + {{- if ge .Capabilities.KubeVersion.Minor "22" }} image: "{{ .Values.scheduler.image.repository }}:0.0.23" - { { - else } } + {{- else }} image: "{{ .Values.scheduler.image.repository }}:0.0.20" - { { - end } } + {{- end }} livenessProbe: httpGet: path: /healthz @@ -60,4 +60,4 @@ spec: - name: dynamic-scheduler-policy configMap: name: dynamic-scheduler-policy -{{ end }} \ No newline at end of file +{{ end }}