Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0d914ea479 | ||
39c0db5a0a | |||
|
e1febe7262 |
46
.gitea/workflows/buildcharts.yaml
Normal file
46
.gitea/workflows/buildcharts.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Package and publish helm chart
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
package-helm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Check out code
|
||||
|
||||
- name: Set up Helm
|
||||
uses: azure/setup-helm@v4.2.0
|
||||
with:
|
||||
version: v3.14.4
|
||||
|
||||
- name: Set up yq
|
||||
uses: mikefarah/yq@master
|
||||
|
||||
- name: Check for changed charts
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
dir_names: true
|
||||
dir_names_max_depth: '2'
|
||||
files: 'charts/**'
|
||||
|
||||
- name: build helm package
|
||||
shell: bash
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
|
||||
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
||||
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
||||
ALL_CHANGED_CHARTS: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
run: |
|
||||
REPO_PATH=$(git rev-parse --show-toplevel)
|
||||
for chart in ${ALL_CHANGED_CHARTS}; do
|
||||
cd ${REPO_PATH}/charts/${chart}
|
||||
CHART_NAME=$(yq .name Chart.yaml)
|
||||
CHART_VERSION=$(yq .version Chart.yaml)
|
||||
echo "Packaging ${CHART_NAME}-${CHART_VERSION}
|
||||
helm package $REPO_PATH
|
||||
curl -H "Authorization: token $PACKAGE_TOKEN" -X POST --upload-file $CHART_NAME-$CHART_VERSION.tgz https://git.rre.nu/api/packages/jonas/helm/api/charts
|
||||
done
|
3
charts/.gitignore
vendored
Normal file
3
charts/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Chart.lock
|
||||
charts/
|
||||
*.tgz
|
12
charts/.pre-commit-config.yaml
Normal file
12
charts/.pre-commit-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.2.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
exclude: README.md$
|
||||
- id: check-yaml
|
||||
exclude: all.yaml
|
||||
- id: check-added-large-files
|
19
charts/home-assistant/Chart.yaml
Normal file
19
charts/home-assistant/Chart.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
apiVersion: v2
|
||||
name: home-assistant
|
||||
description: Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts.
|
||||
type: application
|
||||
version: 1.0.0
|
||||
appVersion: v2024.11.1
|
||||
kubeVersion: ">=1.27.0"
|
||||
home: https://www.home-assistant.io/
|
||||
sources:
|
||||
- https://git.rre.nu/jonas/helm-charts
|
||||
- https://github.com/home-assistant/core
|
||||
maintainers:
|
||||
- name: Jonas Forsberg
|
||||
email: barregargamel@gmail.com
|
||||
dependencies:
|
||||
- name: lib
|
||||
repository: https://git.rre.nu/api/packages/jonas/helm
|
||||
version: 1.0.3
|
2
charts/home-assistant/Makefile
Normal file
2
charts/home-assistant/Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
doc:
|
||||
frigate gen --output-format markdown --no-deps --no-credits ./ > README.md
|
24
charts/home-assistant/README.md
Normal file
24
charts/home-assistant/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
Home-assistant
|
||||
===========
|
||||
|
||||
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts.
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the Home-assistant chart and their default values.
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ------------------------ | ----------------------- | -------------- |
|
||||
| `image.repository` | | `"ghcr.io/home-assistant/home-assistant"` |
|
||||
| `image.tag` | | `null` |
|
||||
| `livenessProbe.httpGet.path` | | `"/"` |
|
||||
| `livenessProbe.httpGet.port` | | `8123` |
|
||||
| `livenessProbe.initialDelaySeconds` | | `5` |
|
||||
| `livenessProbe.periodSeconds` | | `3` |
|
||||
|
||||
|
||||
|
||||
|
||||
|
1
charts/home-assistant/templates/base.tpl
Normal file
1
charts/home-assistant/templates/base.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "lib.all" . }}
|
48
charts/home-assistant/values.yaml
Normal file
48
charts/home-assistant/values.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
image:
|
||||
repository: ghcr.io/home-assistant/home-assistant
|
||||
tag:
|
||||
|
||||
controller: # main workload
|
||||
enabled: true # should the main workload be included or not
|
||||
type: statefulset # valid options are deployment, statefulset, job
|
||||
|
||||
service:
|
||||
http:
|
||||
enabled: true
|
||||
ports:
|
||||
http:
|
||||
port: 80
|
||||
targetPort: 8123
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
service: http # what service should the ingress target
|
||||
servicePort: 80
|
||||
className: "nginx"
|
||||
hosts:
|
||||
- host: example.local
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
annotations:
|
||||
{}
|
||||
tls: []
|
||||
# - secretName: chart-example-tls
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
|
||||
|
||||
volumeClaimTemplates:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
accessMode: "ReadWriteOnce"
|
||||
storageClassName: "default"
|
||||
size: 1Gi
|
||||
|
||||
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 8123
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 3
|
Reference in New Issue
Block a user