From 6a12f3a836d7a14cebd14d6012499adf9f3683d0 Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Fri, 25 Aug 2023 13:44:02 +0200 Subject: [PATCH] Enhance the SCM-Manager helm chart to use to force redeployments for Charts which have not changed clusterwise --- scm-packaging/helm/src/main/chart/templates/deployment.yaml | 4 ++++ scm-packaging/helm/src/main/chart/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/scm-packaging/helm/src/main/chart/templates/deployment.yaml b/scm-packaging/helm/src/main/chart/templates/deployment.yaml index 8e5f46d581..3c90b0c971 100644 --- a/scm-packaging/helm/src/main/chart/templates/deployment.yaml +++ b/scm-packaging/helm/src/main/chart/templates/deployment.yaml @@ -44,6 +44,10 @@ spec: labels: app: {{ include "scm-manager.name" . }} release: {{ .Release.Name }} + {{- if .Values.forceRedeploy }} + annotations: + timestamp: {{ now | quote }} + {{- end }} spec: {{- if .Values.image.pullSecret }} imagePullSecrets: diff --git a/scm-packaging/helm/src/main/chart/values.yaml b/scm-packaging/helm/src/main/chart/values.yaml index 06db3a9a63..95dd3197a5 100644 --- a/scm-packaging/helm/src/main/chart/values.yaml +++ b/scm-packaging/helm/src/main/chart/values.yaml @@ -180,3 +180,6 @@ extraVolumeMounts: | extraArgs: [] # - "-Dscm.initialPassword=admin" # - "-Dscm.initialUser=admin" + +# forceRedeploy - Forces a redeployment in the cluster on every change even if the chart has not changed significantly +forceRedeploy: false