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

Commit a74a9ce

Browse files
authored
Merge pull request #103 from small-hack/feature/add-deployment-type-helm-parameter
add deployment strategy.type helm value
2 parents 2304747 + 804eb3a commit a74a9ce

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

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: 1.3.1
18+
version: 1.4.0
1919

2020
# The appVersion is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Home Assistant versions can be found here: https://github.com/home-assistant/core/releases

charts/home-assistant/README.md

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

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

55
A Helm chart for home assistant on Kubernetes
66

@@ -70,7 +70,7 @@ A Helm chart for home assistant on Kubernetes
7070
| readinessProbe.enabled | bool | `true` | |
7171
| readinessProbe.httpGet.path | string | `"/"` | |
7272
| readinessProbe.httpGet.port | string | `"http"` | |
73-
| replicaCount | int | `1` | |
73+
| replicaCount | int | `1` | deployment replicas: number of replica pods to deploy |
7474
| resources | object | `{}` | resource requests and limits. example: for requesting a USB device from the [generic device plugin](https://github.com/squat/generic-device-plugin) limits: squat.ai/serial: 1 |
7575
| securityContext | object | `{}` | |
7676
| service.port | int | `80` | default port to expose |
@@ -80,6 +80,7 @@ A Helm chart for home assistant on Kubernetes
8080
| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? |
8181
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
8282
| serviceAccount.name | string | `""` | If not set and create is true, a name is generated using the fullname template |
83+
| strategy.type | string | `"RollingUpdate"` | strategy type for the deployment updates. options: "RollingUpdate" or "Recreate" |
8384
| tolerations | list | `[]` | tolerations to have the home assisant pod tolerate node taints |
8485

8586
----------------------------------------------

charts/home-assistant/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ spec:
88
{{- if not .Values.autoscaling.enabled }}
99
replicas: {{ .Values.replicaCount }}
1010
{{- end }}
11+
strategy:
12+
type: {{ .Values.strategy.type }}
1113
selector:
1214
matchLabels:
1315
{{- include "home-assistant.selectorLabels" . | nindent 6 }}

charts/home-assistant/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# -- deployment replicas: number of replica pods to deploy
12
replicaCount: 1
23

4+
strategy:
5+
# -- strategy type for the deployment updates. options: "RollingUpdate" or "Recreate"
6+
type: RollingUpdate
7+
38
image:
49
# -- image repository that defaults to the official Home Assistant GitHub ghcr.io repo
510
repository: ghcr.io/home-assistant/home-assistant

0 commit comments

Comments
 (0)