From 1585cf11ea1e5d0517d0ba6293c6e793cf58c99e Mon Sep 17 00:00:00 2001 From: Anders Olsson Date: Fri, 21 Apr 2023 15:06:18 +0200 Subject: [PATCH] Add configmap checksum on deployments to restart them on changes (#18) * Add configmap checksum on deployments to restart them on changes * Bump chart version --- charts/matomo/Chart.yaml | 2 +- charts/matomo/templates/deployment-matomo-cli.yaml | 4 +++- charts/matomo/templates/deployment-matomo-dashboard.yaml | 4 +++- .../templates/deployment-matomo-queuedtrackingmonitor.yaml | 2 ++ .../templates/deployment-matomo-queuedtrackingprocess.yaml | 2 ++ charts/matomo/templates/deployment-matomo-tracker.yaml | 4 +++- 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/charts/matomo/Chart.yaml b/charts/matomo/Chart.yaml index 95db3f28..eeb94dc5 100644 --- a/charts/matomo/Chart.yaml +++ b/charts/matomo/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 appVersion: "4.12.3" description: A Helm chart Matomo name: matomo -version: 11.0.9 +version: 11.0.10 diff --git a/charts/matomo/templates/deployment-matomo-cli.yaml b/charts/matomo/templates/deployment-matomo-cli.yaml index b04546ec..d75cc59f 100644 --- a/charts/matomo/templates/deployment-matomo-cli.yaml +++ b/charts/matomo/templates/deployment-matomo-cli.yaml @@ -7,6 +7,8 @@ metadata: namespace: {{.Values.namespace}} labels: app: matomo-cli + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap-matomo.yaml") . | sha256sum }} spec: replicas: {{.Values.matomo.cli.replicas}} selector: @@ -68,4 +70,4 @@ spec: protocol: TCP selector: app: matomo-cli -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/charts/matomo/templates/deployment-matomo-dashboard.yaml b/charts/matomo/templates/deployment-matomo-dashboard.yaml index 7d350d44..ab1dec77 100644 --- a/charts/matomo/templates/deployment-matomo-dashboard.yaml +++ b/charts/matomo/templates/deployment-matomo-dashboard.yaml @@ -7,6 +7,8 @@ metadata: namespace: {{.Values.namespace}} labels: app: matomo-dashboard + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap-matomo.yaml") . | sha256sum }} spec: replicas: {{.Values.matomo.dashboard.replicas}} selector: @@ -210,4 +212,4 @@ spec: protocol: TCP selector: app: matomo-dashboard -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/charts/matomo/templates/deployment-matomo-queuedtrackingmonitor.yaml b/charts/matomo/templates/deployment-matomo-queuedtrackingmonitor.yaml index 0d72ce4e..8976eaad 100644 --- a/charts/matomo/templates/deployment-matomo-queuedtrackingmonitor.yaml +++ b/charts/matomo/templates/deployment-matomo-queuedtrackingmonitor.yaml @@ -7,6 +7,8 @@ metadata: namespace: {{.Values.namespace}} labels: app: matomo-queuedtracking-monitor + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap-matomo.yaml") . | sha256sum }} spec: replicas: {{.Values.matomo.queuedTrackingMonitor.replicas | default 1}} selector: diff --git a/charts/matomo/templates/deployment-matomo-queuedtrackingprocess.yaml b/charts/matomo/templates/deployment-matomo-queuedtrackingprocess.yaml index 27cea4fa..570a87cd 100644 --- a/charts/matomo/templates/deployment-matomo-queuedtrackingprocess.yaml +++ b/charts/matomo/templates/deployment-matomo-queuedtrackingprocess.yaml @@ -7,6 +7,8 @@ metadata: namespace: {{.Values.namespace}} labels: app: matomo-queuedtracking-process + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap-matomo.yaml") . | sha256sum }} spec: replicas: {{.Values.matomo.queuedTrackingProcess.replicas}} selector: diff --git a/charts/matomo/templates/deployment-matomo-tracker.yaml b/charts/matomo/templates/deployment-matomo-tracker.yaml index c41cd72c..be3436ac 100644 --- a/charts/matomo/templates/deployment-matomo-tracker.yaml +++ b/charts/matomo/templates/deployment-matomo-tracker.yaml @@ -7,6 +7,8 @@ metadata: namespace: {{.Values.namespace}} labels: app: matomo-tracker + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap-matomo.yaml") . | sha256sum }} spec: replicas: {{.Values.matomo.tracker.replicas}} selector: @@ -188,4 +190,4 @@ spec: protocol: TCP selector: app: matomo-tracker -{{- end -}} \ No newline at end of file +{{- end -}}