Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit eb00994

Browse files
authored
Merge pull request #117 from nicolajv/main
fix incorrect fields in probes and add support for service annotations
2 parents e2e2282 + ff30c86 commit eb00994

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

charts/home-assistant/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ spec:
8989
{{- end }}{{/* end check for env vars for home asisstant container */}}
9090
{{- if .Values.livenessProbe.enabled }}
9191
livenessProbe:
92-
{{- toYaml .Values.livenessProbe | nindent 12 }}
92+
{{- toYaml (omit .Values.livenessProbe "enabled") | nindent 12 }}
9393
{{- end }}
9494
{{- if .Values.readinessProbe.enabled }}
9595
readinessProbe:
96-
{{- toYaml .Values.readinessProbe | nindent 12 }}
96+
{{- toYaml (omit .Values.readinessProbe "enabled") | nindent 12 }}
9797
{{- end }}
9898
{{- with .Values.resources }}
9999
resources:

charts/home-assistant/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
name: {{ include "home-assistant.fullname" . }}
55
labels:
66
{{- include "home-assistant.labels" . | nindent 4 }}
7+
{{- with .Values.service.annotations }}
8+
annotations:
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
711
spec:
812
type: {{ .Values.service.type }}
913
ports:

charts/home-assistant/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ securityContext: {}
4545
# runAsUser: 1000
4646

4747
service:
48+
annotations: {}
4849
type: ClusterIP
4950
# -- default port to expose
5051
port: 80

0 commit comments

Comments
 (0)