Skip to content

Commit

Permalink
Merge pull request #8 from devops-consultants/home-assistant
Browse files Browse the repository at this point in the history
fix: added persistent.pvcName to allow name override
  • Loading branch information
robcoward authored Aug 14, 2024
2 parents b79f351 + 8f990af commit 89ca3a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/home-assistant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: home-assistant
description: A Helm chart for Home-Assistant
type: application
version: 0.1.1
version: 0.1.2
appVersion: "2023.11"
maintainers:
- name: devops-consultants
4 changes: 4 additions & 0 deletions charts/home-assistant/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{- define "home-assistant.pvcName" -}}
{{- default (include "home-assistant.fullname" .) .Values.persistence.pvcName }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/home-assistant/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
{{- include "home-assistant.labels" . | nindent 4 }}
name: {{ include "home-assistant.fullname" . }}
name: {{ include "home-assistant.pvcName" . }}
spec:
accessModes:
- {{ .Values.persistence.accessMode }}
Expand Down
1 change: 1 addition & 0 deletions charts/home-assistant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ persistence:
storageClass: ""
accessMode: ReadWriteOnce
size: 10Gi
pvcName: ""

podAnnotations: {}
podLabels: {}
Expand Down

0 comments on commit 89ca3a7

Please sign in to comment.