Skip to content

Commit

Permalink
charts/cron-job: simplify checksum generation (closes #216)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster authored and ianarsenault committed Feb 12, 2025
1 parent 7dbe206 commit 6410804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/cron-job/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: cron-job
description: A Helm Chart to deploy an arbitrary container as a cron job.
version: 0.7.0
version: 0.8.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/cron-job/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,7 @@ spec:
azure.workload.identity/use: "true"
{{- end }}
annotations:
{{- 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:
{{- if .Values.cloudserviceaccount.deploy }}
serviceAccountName: {{ .Values.cloudserviceaccount.name }}
Expand Down

0 comments on commit 6410804

Please sign in to comment.