From f4979322711440d636780ae282e7914d1a985425 Mon Sep 17 00:00:00 2001 From: Garry O'Donnell Date: Mon, 6 Jan 2025 14:44:05 +0000 Subject: [PATCH] Add checksum to backend deployment to force reload with secret update --- charts/backend/Chart.yaml | 2 +- charts/backend/templates/deployment.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/backend/Chart.yaml b/charts/backend/Chart.yaml index 9e1e0cc2..3e995e28 100644 --- a/charts/backend/Chart.yaml +++ b/charts/backend/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: developer-portal-backend description: A Helm chart for deploying the Diamond developer portal backend type: application -version: 0.1.0 +version: 0.1.1 appVersion: 0.0.26 dependencies: - name: common diff --git a/charts/backend/templates/deployment.yaml b/charts/backend/templates/deployment.yaml index 5d363379..c7c68b37 100644 --- a/charts/backend/templates/deployment.yaml +++ b/charts/backend/templates/deployment.yaml @@ -14,6 +14,7 @@ spec: metadata: labels: {{- include "common.labels.standard" $ | nindent 8 }} + checksum/secrets: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} spec: {{- if .Values.serviceAccount.create }} serviceAccountName: {{ include "common.names.fullname" $ }}