From 1ba68a138c01f5146243c58b74b7762435d5e08e Mon Sep 17 00:00:00 2001 From: Dong Wang Date: Tue, 27 Sep 2022 18:06:04 +0800 Subject: [PATCH] Fix helm chart issue when set controller.strategy --- deployments/helm-chart/templates/controller-daemonset.yaml | 2 +- deployments/helm-chart/templates/controller-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployments/helm-chart/templates/controller-daemonset.yaml b/deployments/helm-chart/templates/controller-daemonset.yaml index f097814afd..a318bfc0f6 100644 --- a/deployments/helm-chart/templates/controller-daemonset.yaml +++ b/deployments/helm-chart/templates/controller-daemonset.yaml @@ -216,7 +216,6 @@ spec: {{- if .Values.controller.initContainers }} initContainers: {{ toYaml .Values.controller.initContainers | nindent 8 }} {{- end }} -{{- end }} {{- if .Values.controller.strategy }} updateStrategy: {{ toYaml .Values.controller.strategy | indent 4 }} @@ -224,3 +223,4 @@ spec: {{- if .Values.controller.minReadySeconds }} minReadySeconds: {{ .Values.controller.minReadySeconds }} {{- end }} +{{- end }} diff --git a/deployments/helm-chart/templates/controller-deployment.yaml b/deployments/helm-chart/templates/controller-deployment.yaml index e8b20d4252..55b6f27f03 100644 --- a/deployments/helm-chart/templates/controller-deployment.yaml +++ b/deployments/helm-chart/templates/controller-deployment.yaml @@ -219,7 +219,6 @@ spec: {{- if .Values.controller.initContainers }} initContainers: {{ toYaml .Values.controller.initContainers | nindent 8 }} {{- end }} -{{- end }} {{- if .Values.controller.strategy }} strategy: {{ toYaml .Values.controller.strategy | indent 4 }} @@ -227,3 +226,4 @@ spec: {{- if .Values.controller.minReadySeconds }} minReadySeconds: {{ .Values.controller.minReadySeconds }} {{- end }} +{{- end }}