From cc4eae99d178e808be7a55d9f98f3707f1de2110 Mon Sep 17 00:00:00 2001 From: Igor Belikov Date: Fri, 21 Feb 2020 06:02:32 +0100 Subject: [PATCH] Fix deployment strategy location (#20898) strategy field should be a part of deployment spec, not pod template spec. Signed-off-by: Igor Belikov --- stable/cluster-autoscaler/Chart.yaml | 2 +- stable/cluster-autoscaler/templates/deployment.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stable/cluster-autoscaler/Chart.yaml b/stable/cluster-autoscaler/Chart.yaml index fbe468757e..af42a09d49 100644 --- a/stable/cluster-autoscaler/Chart.yaml +++ b/stable/cluster-autoscaler/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: Scales worker nodes within autoscaling groups. icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png name: cluster-autoscaler -version: 6.5.0 +version: 6.6.0 appVersion: 1.14.6 home: https://github.com/kubernetes/autoscaler sources: diff --git a/stable/cluster-autoscaler/templates/deployment.yaml b/stable/cluster-autoscaler/templates/deployment.yaml index 8a92000983..89dc706666 100644 --- a/stable/cluster-autoscaler/templates/deployment.yaml +++ b/stable/cluster-autoscaler/templates/deployment.yaml @@ -14,6 +14,10 @@ spec: {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 6 }} {{- end }} +{{- if .Values.updateStrategy }} + strategy: + {{ toYaml .Values.updateStrategy | nindent 4 | trim }} +{{- end }} template: metadata: {{- if .Values.podAnnotations }} @@ -194,10 +198,6 @@ spec: securityContext: {{ toYaml .Values.securityContext | nindent 8 | trim }} {{- end }} - {{- if .Values.updateStrategy }} - strategy: - {{ toYaml .Values.updateStrategy | nindent 8 | trim }} - {{- end }} {{- if eq .Values.cloudProvider "gce" }} volumes: - name: cloudconfig