Skip to content

Commit 09c6e22

Browse files
committed
Add env-secret checksum to automatically rollout deployment when it changes
1 parent 7643332 commit 09c6e22

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

charts/single-deployment/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: single-deployment
33
description: A Helm chart for single deployment application
44
type: application
5-
version: 0.4.3
5+
version: 0.4.4
66
appVersion: "latest"
77
maintainers:
88
- name: pmint93

charts/single-deployment/templates/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ strategy:
1414
pod_labels:
1515
{{- include "single-deployment.selectorLabels" . | nindent 4 }}
1616
pod_annotations:
17-
{{- toYaml .Values.podAnnotations | nindent 2 }}
17+
checksum/env-secret: {{ include (print $.Template.BasePath "/env-secret.yaml") . | sha256sum }}
18+
{{- with .Values.podAnnotations }}
19+
{{ toYaml . | nindent 2 }}
20+
{{- end }}
1821
topologySpreadConstraints:
1922
{{- toYaml .Values.topologySpreadConstraints | nindent 2 }}
2023
tolerations:

0 commit comments

Comments
 (0)