Compare commits

...

5 Commits

Author SHA1 Message Date
8d7d4e7034 Update dependency homeassistant to v2023.11.3 2024-01-07 15:22:35 +01:00
852bea664c chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-12-14 12:20:37 +01:00
457c3577cc chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.38.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-12-09 15:35:39 +01:00
e8cd20b9f5 fix: add persistent volume claim
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-09 17:42:39 +01:00
e2ebfb3943 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-09 17:21:31 +01:00
5 changed files with 51 additions and 20 deletions

View File

@ -17,7 +17,7 @@ steps:
- name: helm lint
commands:
- helm lint
image: git.cryptic.systems/volker.raschek/helm:3.13.1
image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources:
limits:
cpu: 50
@ -26,7 +26,7 @@ steps:
- name: markdown lint
commands:
- markdownlint *.md
image: git.cryptic.systems/volker.raschek/markdownlint:0.37.0
image: git.cryptic.systems/volker.raschek/markdownlint:0.38.0
resources:
limits:
cpu: 150
@ -35,7 +35,7 @@ steps:
- name: helm template
commands:
- helm template .
image: git.cryptic.systems/volker.raschek/helm:3.13.1
image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources:
limits:
cpu: 150
@ -93,7 +93,7 @@ steps:
from_secret: helm_repo_password
HELM_REPO_USERNAME:
from_secret: helm_repo_username
image: git.cryptic.systems/volker.raschek/helm:3.13.1
image: git.cryptic.systems/volker.raschek/helm:3.13.3
resources:
limits:
cpu: 150

View File

@ -3,7 +3,7 @@ name: homeassistant
description: Helm chart for homeassistant
type: application
version: "0.1.0"
appVersion: "2023.10.5"
appVersion: "2023.11.3"
icon: https://upload.wikimedia.org/wikipedia/commons/6/6e/Home_Assistant_Logo.svg
keywords:

View File

@ -48,9 +48,10 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 8 }}
{{- if .Values.persistentStorage.enabled }}
volumes:
- name: config
mountPath: /config
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
@ -69,7 +70,15 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.persistentStorage.enabled }}
volumes:
{{- with .Values.volumes }}
{{- toYaml . | nindent 6 }}
{{- if .Values.persistentStorage.existingClaim }}
- name: config
persistentVolumeClaim:
claimName: {{ .Values.persistentStorage.existingClaim }}
{{- else }}
- name: config
persistentVolumeClaim:
claimName: {{ include "homeassistant.fullname" . }}
{{- end }}
{{- end }}

View File

@ -0,0 +1,24 @@
{{- if .Values.persistentStorage.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
{{- with .Values.persistentStorage.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "homeassistant.fullname" . }}
labels:
{{- include "homeassistant.labels" . | nindent 4 }}
{{- with .Values.persistentStorage.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.persistentStorage.storageClass }}
storageClassName: {{ .Values.persistentStorage.storageClass }}
{{- end }}
resources:
requests:
storage: {{ required "Require size of persistent volume claim" .Values.persistentStorage.size }}
{{- end }}

View File

@ -37,6 +37,14 @@ ingress:
nodeSelector: {}
persistentStorage:
enabled: false
existingClaim: ""
annotations: {}
labels: {}
storageClass:
size: 15Gi
podAnnotations: {}
podPriorityClassName: ""
@ -70,13 +78,3 @@ service:
port: 8123
tolerations: []
volumeMounts: []
# - name: config
# mountPath: /config
volumes: []
# - name: config
# hostPath:
# path: /etc/homeassistant
# type: DirectoryOrCreate