Skip to content

Commit aa1239f

Browse files
authored
Merge pull request #19 from small-hack/update-home-assistant
update helm chart version, add ci testing, and add officially offer dconz for enabling
2 parents 907be0c + 3ac1129 commit aa1239f

File tree

5 files changed

+61
-21
lines changed

5 files changed

+61
-21
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Lint and Test Chart
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'charts/home-assistant/**'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: "0"
20+
21+
- name: Install Helm
22+
uses: azure/setup-helm@v4
23+
24+
- name: Set up chart-testing
25+
uses: helm/[email protected]
26+
27+
- name: Run chart-testing (list-changed)
28+
id: list-changed
29+
run: |
30+
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
31+
if [[ -n "$changed" ]]; then
32+
echo "changed=true" >> "$GITHUB_OUTPUT"
33+
fi
34+
35+
- name: Run chart-testing (lint)
36+
id: lint
37+
if: steps.list-changed.outputs.changed == 'true'
38+
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
39+
40+
- name: Create kind cluster
41+
uses: helm/[email protected]
42+
if: steps.list-changed.outputs.changed == 'true'
43+
44+
- name: Run chart-testing (install)
45+
id: install
46+
if: steps.list-changed.outputs.changed == 'true'
47+
run: |
48+
ct install --target-branch ${{ github.event.repository.default_branch }}

.github/workflows/helm-docs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'charts/home-assistant/values.yaml'
88

99
permissions:
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
update-docs:
@@ -26,7 +26,8 @@ jobs:
2626
- uses: EndBug/add-and-commit@v9
2727
name: commit helm docs changes
2828
with:
29-
add: 'charts/matrix/README.md'
29+
add: 'charts/home-assistant/README.md'
3030
author_name: jessebot
3131
committer_name: friend
3232
message: 'Automated GHA - Updating helm docs'
33+
push: origin HEAD:${{ github.head_ref }}

charts/home-assistant/Chart.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,15 @@ 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.4.0
18+
version: 0.5.0
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
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "2024.2.1"
24+
appVersion: "2024.3"
2525

2626
maintainers:
2727
- name: "jessebot"
2828
2929
url: "https://github.com/jessebot"
30-
31-
# dependencies:
32-
# - name: deconz
33-
# version: 0.1.0
34-
# repository: https://small-hack.github.io/home-assistant
35-
# condition: dconz.enabled

charts/home-assistant/README.md

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

3-
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-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.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2024.3](https://img.shields.io/badge/AppVersion-2024.3-informational?style=flat-square)
44

55
A Helm chart for home assistant on Kubernetes
66

@@ -10,6 +10,12 @@ A Helm chart for home assistant on Kubernetes
1010
| ---- | ------ | --- |
1111
| jessebot | <[email protected]> | <https://github.com/jessebot> |
1212

13+
## Requirements
14+
15+
| Repository | Name | Version |
16+
|------------|------|---------|
17+
| https://small-hack.github.io/home-assistant | deconz | 0.1.0 |
18+
1319
## Values
1420

1521
| Key | Type | Default | Description |
@@ -19,6 +25,7 @@ A Helm chart for home assistant on Kubernetes
1925
| autoscaling.maxReplicas | int | `100` | |
2026
| autoscaling.minReplicas | int | `1` | |
2127
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
28+
| deconz.enabled | bool | `false` | enable deconz for the conbee 1/2 for use with homeAssistant this can be obviated by setting extraVolumes/extraVolumeMounts/resouces if you have already installed the generic device plugin k8s daemonset. otherwise, checkout the parameters available in here: https://github.com/small-hack/home-assistant-chart/tree/main/charts/deconz |
2229
| extraVolumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. example device mount: - mountPath: /dev/ttyACM0 name: usb |
2330
| extraVolumes | list | `[]` | Additional volumes on the output Deployment definition. example device as volume: - hostPath: path: >- /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230509111242-if00 type: CharDevice name: usb |
2431
| fullnameOverride | string | `""` | |

charts/home-assistant/values.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,3 @@ homeAssistant:
129129
configuration: ""
130130
# -- name of existing Config Map
131131
existingConfigMap: ""
132-
133-
## coming soon
134-
# deconz:
135-
# # -- enable deconz for the conbee 1/2 for use with homeAssistant
136-
# # this can be obviated by setting extraVolumes/extraVolumeMounts/resouces if
137-
# # you have already installed the generic device plugin k8s daemonset.
138-
# #
139-
# # otherwise, checkout the parameters available in here:
140-
# # https://github.com/small-hack/home-assistant-chart/tree/main/charts/deconz
141-
# enabled: false

0 commit comments

Comments
 (0)