Skip to content

Commit

Permalink
Merge pull request #104 from eklesel/helm-deployment-config-checksum
Browse files Browse the repository at this point in the history
Add a configmap checksum to the helm chart deployment
  • Loading branch information
czerwonk authored Feb 28, 2024
2 parents 463fbec + 1a4c8e8 commit bae52df
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
16 changes: 13 additions & 3 deletions dist/charts/index.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
apiVersion: v1
entries:
ping-exporter:
- apiVersion: v2
appVersion: 1.1.0
created: "2024-02-28T11:45:46.282974652Z"
description: Prometheus exporter for ICMP echo requests
digest: b564d6150c79691c63189498cd7c117b3ece8ac8e33ee607f37354b4cfe128f9
name: ping-exporter
type: application
urls:
- ping-exporter-1.1.0.tgz
version: 1.1.0
- apiVersion: v2
appVersion: 0.4.8
created: "2021-12-10T02:34:57.075817897-08:00"
created: "2024-02-28T11:45:46.282481775Z"
description: Prometheus exporter for ICMP echo requests
digest: da2883ea8479fe47c43211a1c5af7aac0bd608f13b73aa4196557185db1601d2
digest: e2dd5d6b44761c50dfbeff7721526778992d8ba0b9314af64c883cb6dab1d058
name: ping-exporter
type: application
urls:
- ping-exporter-1.0.0.tgz
version: 1.0.0
generated: "2021-12-10T02:34:57.071949419-08:00"
generated: "2024-02-28T11:45:46.281597437Z"
Binary file added dist/charts/ping-exporter-1.1.0.tgz
Binary file not shown.
3 changes: 2 additions & 1 deletion dist/charts/ping-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ spec:
{{- include "ping_exporter.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
Expand Down

0 comments on commit bae52df

Please sign in to comment.