Skip to content

Commit

Permalink
Automatically roll deployment on config change
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-devops committed Jan 31, 2024
1 parent 4dcde1a commit fd8c3ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/palworld/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: palworld
version: 0.1.1
version: 0.1.2
description: Palworld Helm chart for Kubernetes
home: https://github.com/caleb-devops/palworld-helm
sources:
Expand Down
10 changes: 7 additions & 3 deletions charts/palworld/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ spec:
{{- include "palworld.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.config.secretEnv.create }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
labels:
{{- include "palworld.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
Expand Down

0 comments on commit fd8c3ff

Please sign in to comment.