Skip to content

Commit 52abb72

Browse files
authored
Merge pull request #6 from jessebot/make-readiness-probe-optional
make readiness/liveness probes optional
2 parents 36ab9f6 + 26a4428 commit 52abb72

File tree

5 files changed

+11
-20
lines changed

5 files changed

+11
-20
lines changed

charts/home-assistant/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.4
18+
version: 0.2.5
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/home-assistant/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# home-assistant
22

3-
![Version: 0.2.4](https://img.shields.io/badge/Version-0.2.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2024.2.1](https://img.shields.io/badge/AppVersion-2024.2.1-informational?style=flat-square)
3+
![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2024.2.1](https://img.shields.io/badge/AppVersion-2024.2.1-informational?style=flat-square)
44

55
A Helm chart for home assistant on Kubernetes
66

@@ -18,8 +18,6 @@ A Helm chart for home assistant on Kubernetes
1818
| fullnameOverride | string | `""` | |
1919
| homeAssistant.configuration | object | `{}` | any data you'd like to see put into your configuration.yaml |
2020
| homeAssistant.existingConfigMap | string | `""` | name of existing Config Map |
21-
| homeAssistant.http.trusted_proxies[0] | string | `"10.0.0.0/8"` | |
22-
| homeAssistant.http.use_x_forwarded_for | bool | `true` | |
2321
| image.pullPolicy | string | `"IfNotPresent"` | |
2422
| image.repository | string | `"ghcr.io/home-assistant/home-assistant"` | |
2523
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
@@ -31,19 +29,21 @@ A Helm chart for home assistant on Kubernetes
3129
| ingress.hosts[0].paths[0].path | string | `"/"` | |
3230
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
3331
| ingress.tls | list | `[]` | |
32+
| livenessProbe.enabled | bool | `true` | |
3433
| livenessProbe.httpGet.path | string | `"/"` | |
3534
| livenessProbe.httpGet.port | string | `"http"` | |
3635
| nameOverride | string | `""` | |
3736
| nodeSelector | object | `{}` | |
3837
| persistence.accessMode | string | `"ReadWriteOnce"` | |
3938
| persistence.annotations | object | `{}` | |
40-
| persistence.enabled | bool | `true` | |
39+
| persistence.enabled | bool | `false` | |
4140
| persistence.existingClaim | string | `""` | |
4241
| persistence.size | string | `"8Gi"` | |
4342
| persistence.storageClass | string | `"nil"` | |
4443
| podAnnotations | object | `{}` | |
4544
| podLabels | object | `{}` | |
4645
| podSecurityContext | object | `{}` | |
46+
| readinessProbe.enabled | bool | `true` | |
4747
| readinessProbe.httpGet.path | string | `"/"` | |
4848
| readinessProbe.httpGet.port | string | `"http"` | |
4949
| replicaCount | int | `1` | |

charts/home-assistant/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ spec:
5555
- name: http
5656
containerPort: {{ .Values.service.port }}
5757
protocol: TCP
58+
{{- if .Values.livenessProbe.enabled }}
5859
livenessProbe:
5960
{{- toYaml .Values.livenessProbe | nindent 12 }}
61+
{{- end }}
62+
{{- if .Values.readinessProbe.enabled }}
6063
readinessProbe:
6164
{{- toYaml .Values.readinessProbe | nindent 12 }}
65+
{{- end }}
6266
resources:
6367
{{- toYaml .Values.resources | nindent 12 }}
6468
{{- if or .Values.persistence.enabled .Values.extraVolumeMounts }}

charts/home-assistant/templates/tests/test-connection.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

charts/home-assistant/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ resources: {}
6969
# memory: 128Mi
7070

7171
livenessProbe:
72+
enabled: true
7273
httpGet:
7374
path: /
7475
port: http
7576
readinessProbe:
77+
enabled: true
7678
httpGet:
7779
path: /
7880
port: http

0 commit comments

Comments
 (0)