Skip to content

Commit

Permalink
Add config hash (#30)
Browse files Browse the repository at this point in the history
* annotate the controller with the sha256 of the values map
  • Loading branch information
jameswynn authored Aug 12, 2024
1 parent ef903e4 commit aaa7d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/homepage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
description: Chart for Homepage
icon: https://github.com/gethomepage/homepage/blob/main/public/mstile-150x150.png
name: homepage
version: 2.0.0
version: 2.0.1
appVersion: v0.9.6
sources:
- https://github.com/jameswynn/helm-charts/charts/homepage
Expand All @@ -17,4 +17,4 @@ dependencies:
annotations:
artifacthub.io/changes: |-
- kind: added
description: Bumped app versions, fixed default service account, resource names are more consistent
description: Checksum of values added to the deployment to ensure config changes cause reload
2 changes: 2 additions & 0 deletions charts/homepage/templates/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ subPath:
{{- end -}}
{{- $_ := set .Values.persistence "homepage-config" (include "homepage.configVolume" . | fromYaml) -}}

{{- $_ := set .Values.controller.annotations "values-checksum" ( print .Values | sha256sum ) -}}

{{ if .Values.enableRbac }}
{{- $_ := set .Values.serviceAccount "create" "true" -}}
{{ end }}
Expand Down

0 comments on commit aaa7d78

Please sign in to comment.