From 6876d051e24055c6f22e8bd81fe70b48e5f62980 Mon Sep 17 00:00:00 2001 From: "Sam Wang (holyspectral)" Date: Thu, 22 Aug 2024 14:45:25 -0400 Subject: [PATCH] fix: pod created by upgrader cronjob has no effect --- charts/core/templates/controller-deployment.yaml | 4 ---- charts/core/templates/upgrader-cronjob.yaml | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/charts/core/templates/controller-deployment.yaml b/charts/core/templates/controller-deployment.yaml index 8d3509ab..ec67ae96 100644 --- a/charts/core/templates/controller-deployment.yaml +++ b/charts/core/templates/controller-deployment.yaml @@ -98,10 +98,6 @@ spec: env: - name: OVERRIDE_CHECKSUM value: {{ dict "image" (include "neuvector.controller.image" .) "internal" .Values.internal "certupgrader" .Values.controller.certupgrader | toJson | sha256sum }} - {{- if and .Values.internal.autoRotateCert (not $pre540) }} - - name: ENABLE_ROTATION - value: "1" - {{- end }} {{- with .Values.controller.certupgrader.env }} {{- toYaml . | nindent 12 }} {{- end }} diff --git a/charts/core/templates/upgrader-cronjob.yaml b/charts/core/templates/upgrader-cronjob.yaml index 684c7542..79c6f413 100644 --- a/charts/core/templates/upgrader-cronjob.yaml +++ b/charts/core/templates/upgrader-cronjob.yaml @@ -73,6 +73,9 @@ spec: command: - /usr/local/bin/upgrader - upgrader-job + {{- if and .Values.internal.autoRotateCert }} + - --enable-rotation + {{- end }} env: {{- with .Values.controller.certupgrader.env }} {{- toYaml . | nindent 14 }}