diff --git a/charts/home-assistant/README.md b/charts/home-assistant/README.md index e9b8500..4706784 100644 --- a/charts/home-assistant/README.md +++ b/charts/home-assistant/README.md @@ -62,6 +62,7 @@ This document provides detailed configuration options for the Home Assistant Hel | `serviceAccount.create` | Specifies whether a service account should be created | `true` | | `serviceAccount.annotations` | Annotations to add to the service account | `{}` | | `serviceAccount.name` | The name of the service account to use | `""` | +| `statefulSetAnnotations` | Annotations to add to the StatefulSet | `{}` | | `podAnnotations` | Annotations to add to the pod | `{}` | | `podSecurityContext` | Pod security context settings | `{}` | | `env` | Environment variables | `[]` | diff --git a/charts/home-assistant/templates/statefulset.yaml b/charts/home-assistant/templates/statefulset.yaml index 11784a2..202d05e 100644 --- a/charts/home-assistant/templates/statefulset.yaml +++ b/charts/home-assistant/templates/statefulset.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "home-assistant.fullname" . }} labels: {{- include "home-assistant.labels" . | nindent 4 }} +{{- if .Values.statefulSetAnnotations }} + annotations: + {{- toYaml .Values.statefulSetAnnotations | nindent 4 }} +{{- end }} spec: serviceName: {{ include "home-assistant.fullname" . }} replicas: {{ .Values.replicaCount }} diff --git a/charts/home-assistant/values.yaml b/charts/home-assistant/values.yaml index 6abb89e..8b31ee4 100644 --- a/charts/home-assistant/values.yaml +++ b/charts/home-assistant/values.yaml @@ -387,3 +387,6 @@ addons: additionalMounts: [] # - mountPath: /home/coder/.ssh/id_rsa # name: id-rsa + +# Annotations to add to the stateful set +statefulSetAnnotations: {}