Skip to content

Commit

Permalink
Add configmap checksum on deployments to restart them on changes (#18)
Browse files Browse the repository at this point in the history
* Add configmap checksum on deployments to restart them on changes

* Bump chart version
  • Loading branch information
logaritmisk authored Apr 21, 2023
1 parent deafe22 commit 1585cf1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/matomo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion charts/matomo/templates/deployment-matomo-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -68,4 +70,4 @@ spec:
protocol: TCP
selector:
app: matomo-cli
{{- end -}}
{{- end -}}
4 changes: 3 additions & 1 deletion charts/matomo/templates/deployment-matomo-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -210,4 +212,4 @@ spec:
protocol: TCP
selector:
app: matomo-dashboard
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion charts/matomo/templates/deployment-matomo-tracker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -188,4 +190,4 @@ spec:
protocol: TCP
selector:
app: matomo-tracker
{{- end -}}
{{- end -}}

0 comments on commit 1585cf1

Please sign in to comment.