Skip to content

Commit

Permalink
charts/daemonset: simplify checksum generation (closes #215)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster authored and ianarsenault committed Feb 12, 2025
1 parent 1078e82 commit 7dbe206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/daemonset/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: daemonset
description: A Helm Chart to deploy an arbitrary container as a daemonset.
version: 0.4.0
version: 0.5.0
icon: https://raw.githubusercontent.com/snowplow-devops/helm-charts/master/docs/logo/snowplow.png
home: https://github.com/snowplow-devops/helm-charts
sources:
Expand Down
12 changes: 1 addition & 11 deletions charts/daemonset/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,7 @@ spec:
{{- with .Values.daemonsetAnnotations }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if .Values.configMaps }}
{{- range $v := .Values.configMaps }}
{{- range $f := $v.files }}
{{- if $f.contentsB64 }}
checksum/{{ $v.name }}-{{ $f.key }}: "{{ $f.contentsB64 | sha256sum }}"
{{- else }}
checksum/{{ $v.name }}-{{ $f.key }}: "{{ ($.Files.Get $f.contentsFile) | b64enc | sha256sum }}"
{{- end }}
{{- end }}
{{- end }}
{{- end }}
checksum/values: "{{ toJson .Values | sha256sum }}"
spec:
enableServiceLinks: false
hostPID: {{ .Values.config.hostPIDAccess | default "false" }}
Expand Down

0 comments on commit 7dbe206

Please sign in to comment.