Skip to content

Commit 5238184

Browse files
authored
Merge pull request #39 from T-Systems-MMS/proxysql_annotations
Proxysql configmap checksum annotation
2 parents 6324282 + db92266 commit 5238184

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

proxysql/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
name: proxysql
44
description: ProxySQL Configuration
5-
version: 0.1.11
5+
version: 0.2.0

proxysql/templates/daemonset.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ spec:
1717
metadata:
1818
labels:
1919
app: {{ .Values.name }}
20+
annotations:
21+
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
22+
{{- range $key, $value := .Values.daemonset.template.annotations }}
23+
{{ $key }}: {{ $value }}
24+
{{- end }}
2025
spec:
2126
containers:
2227
- name: {{ .Values.name }}

proxysql/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ service:
99
type: "NodePort"
1010
externalTrafficPolicy: "Local"
1111
daemonset:
12+
template:
13+
annotations: {}
1214
containers:
1315
image: proxysql/proxysql:latest
1416
imagePullPolicy: "IfNotPresent"

0 commit comments

Comments
 (0)