64 Commits

Author SHA1 Message Date
f559758fc1 chore(deps): update homeassistant/home-assistant docker tag to v2025 2025-11-07 23:07:33 +00:00
be1824a06f docs(README): set line length to 120 2025-10-13 07:32:10 +02:00
9c4c8396a2 Merge pull request 'chore(deps): update container images' (#67) from renovate/container-images into master 2025-10-13 05:30:14 +00:00
84395b5522 chore(deps): update container images 2025-09-21 13:06:46 +00:00
f82210da9e fix(renovate): use presets 2025-08-25 19:14:05 +02:00
1a0c450ee4 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.45.0 2025-08-10 19:07:33 +00:00
781e5ab795 docs(README): remove drone badge 2025-06-01 12:44:33 +02:00
18435569dd chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.44.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-04-01 17:12:56 +00:00
daf70aeb5c chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.17.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-03-30 19:19:02 +00:00
2d899e497c chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.16.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-12-17 11:17:44 +00:00
7d8e1a0eed chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.43.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-12-03 14:21:18 +00:00
77010fdf20 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.16.3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-12-02 11:17:13 +00:00
9c9821609a chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.4.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-11-25 23:20:22 +00:00
b868bf7b0e chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.42.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-10-14 19:21:04 +00:00
bad569eb25 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.16.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-09-16 16:19:49 +00:00
644a7a2a94 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.15.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-08-15 10:11:21 +00:00
40b44c11d2 fix: mount volume correctly
Some checks reported errors
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build was killed
2024-07-22 18:27:18 +02:00
6c753b38c5 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.41.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-05-27 13:26:04 +00:00
bdcecd1af0 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.15.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-05-16 10:06:56 +00:00
84d1807608 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.40.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-05-07 23:58:32 +00:00
52b4034079 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.14.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-04-11 07:12:45 +00:00
4669713a59 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.14.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-22 20:05:58 +01:00
6b184b950f chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.14.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-23 11:10:25 +00:00
a931a11980 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.14.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-15 19:06:26 +01:00
f4a7c80425 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.39.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-01-28 23:36:10 +01:00
dfb5535b16 fix(renovate): remove automerge options
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-21 14:42:50 +01:00
d4f4df700d Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.14.0' (#35) from renovate/git.cryptic.systems-volker.raschek-helm-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-21 11:13:03 +00:00
b6f0f2a6fc chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.14.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-01-21 11:12:25 +00:00
8c83884691 Update dependency homeassistant to v2023.12.4
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-07 15:23:06 +01:00
8d7d4e7034 Update dependency homeassistant to v2023.11.3 2024-01-07 15:22:35 +01:00
852bea664c chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-12-14 12:20:37 +01:00
457c3577cc chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.38.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-12-09 15:35:39 +01:00
e8cd20b9f5 fix: add persistent volume claim
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-09 17:42:39 +01:00
e2ebfb3943 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-09 17:21:31 +01:00
014a4c8600 Update dependency homeassistant to v2023.10.5
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-09 17:15:07 +01:00
ee8f9e2e8e Update dependency homeassistant to v2023.9.3 2023-11-09 17:14:26 +01:00
680077d71f Update dependency homeassistant to v2023.8.4
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-09 17:13:48 +01:00
e89374e609 Update dependency homeassistant to v2023.7.3 2023-11-09 17:13:01 +01:00
8170f700c3 Update dependency homeassistant to v2023.6.3 2023-11-09 17:12:19 +01:00
e0b1930084 Update dependency homeassistant to v2023.5.4
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-09 17:09:23 +01:00
846a278432 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-10-18 15:11:29 +02:00
07c090ff9c Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.0' (#29) from renovate/git.cryptic.systems-volker.raschek-helm-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #29
2023-10-02 07:27:53 +00:00
7a10b48efc Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/drone-email docker tag to v0.1.5' (#28) from renovate/git.cryptic.systems-volker.raschek-drone-email-0.x into master
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Reviewed-on: #28
2023-10-02 07:27:12 +00:00
1c64fde5e9 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.3.1' (#27) from renovate/git.cryptic.systems-volker.raschek-git-1.x into master
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Reviewed-on: #27
2023-10-02 07:26:21 +00:00
c8e9603f34 chore(deps): update git.cryptic.systems/volker.raschek/helm docker tag to v3.13.0
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build encountered an error
2023-10-02 01:50:56 +02:00
62d0f0f24c chore(deps): update git.cryptic.systems/volker.raschek/drone-email docker tag to v0.1.5
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2023-10-01 23:20:07 +02:00
da3d3f996c chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.3.1
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2023-10-01 22:27:07 +02:00
808fa995d3 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.37.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-09-22 19:37:02 +02:00
65599ce4b4 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.36.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-09-03 13:57:55 +02:00
1545f28ee0 chore(deps): update dependency git.cryptic.systems/volker.raschek/helm to v3.12.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-08-18 15:22:01 +02:00
09d2313b82 chore(deps): update dependency git.cryptic.systems/volker.raschek/helm to v3.12.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-07-15 13:33:51 +02:00
c251423424 chore(deps): update dependency git.cryptic.systems/volker.raschek/markdownlint to v0.35.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-18 15:24:00 +02:00
ebfeab554e chore(deps): update dependency git.cryptic.systems/volker.raschek/drone-email to v0.1.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-18 14:54:34 +02:00
6e86099478 chore(deps): update dependency git.cryptic.systems/volker.raschek/helm to v3.12.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-06-18 14:43:32 +02:00
87726d5a35 fix: migrate to git.cryptic.systems
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-06-17 15:16:08 +02:00
d5704f62c5 Update dependency docker.io/volkerraschek/helm to v3.12.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-05-29 11:16:50 +02:00
98fd4676f7 Update dependency homeassistant to v2023.4.6
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-04-24 18:20:28 +02:00
684c903a94 Update dependency docker.io/volkerraschek/helm to v3.11.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-04-12 22:33:42 +02:00
32616f8dd7 Update dependency homeassistant to v2023.3.6
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-06 14:37:12 +02:00
d15d804eda Update dependency docker.io/volkerraschek/helm to v3.11.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-03-09 09:13:14 +01:00
32e1137d36 Update dependency homeassistant to v2023.2.5
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-06 23:09:34 +01:00
b11550e8d6 Update dependency docker.io/volkerraschek/helm to v3.11.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-02-10 11:13:17 +01:00
c767330afb Update dependency homeassistant to v2023.1.7
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-05 09:57:21 +01:00
84d53816d1 Update dependency docker.io/volkerraschek/helm to v3.11.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-01-19 19:03:22 +01:00
9 changed files with 148 additions and 64 deletions

View File

@@ -3,15 +3,21 @@ kind: pipeline
type: kubernetes type: kubernetes
name: linter name: linter
clone:
disable: true
platform: platform:
os: linux os: linux
arch: amd64 arch: amd64
steps: steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: helm lint - name: helm lint
commands: commands:
- helm lint - helm lint
image: docker.io/volkerraschek/helm:3.10.2 image: git.cryptic.systems/volker.raschek/helm:3.19.0
resources: resources:
limits: limits:
cpu: 50 cpu: 50
@@ -20,7 +26,7 @@ steps:
- name: markdown lint - name: markdown lint
commands: commands:
- markdownlint *.md - markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.33.0 image: git.cryptic.systems/volker.raschek/markdownlint:0.45.0
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@@ -29,7 +35,7 @@ steps:
- name: helm template - name: helm template
commands: commands:
- helm template . - helm template .
image: docker.io/volkerraschek/helm:3.10.2 image: git.cryptic.systems/volker.raschek/helm:3.19.0
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@@ -47,7 +53,7 @@ steps:
from_secret: smtp_username from_secret: smtp_username
SMTP_PASSWORD: SMTP_PASSWORD:
from_secret: smtp_password from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1 image: git.cryptic.systems/volker.raschek/drone-email:0.2.0
resources: resources:
limits: limits:
cpu: 150 cpu: 150
@@ -67,10 +73,16 @@ kind: pipeline
type: kubernetes type: kubernetes
name: release name: release
clone:
disable: true
platform: platform:
os: linux os: linux
steps: steps:
- name: clone
image: git.cryptic.systems/volker.raschek/git:1.4.0
- name: release-helm-chart - name: release-helm-chart
commands: commands:
- helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek - helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
@@ -81,7 +93,7 @@ steps:
from_secret: helm_repo_password from_secret: helm_repo_password
HELM_REPO_USERNAME: HELM_REPO_USERNAME:
from_secret: helm_repo_username from_secret: helm_repo_username
image: docker.io/volkerraschek/helm:3.10.2 image: git.cryptic.systems/volker.raschek/helm:3.19.0
resources: resources:
limits: limits:
cpu: 150 cpu: 150

View File

@@ -45,9 +45,9 @@ MD012:
# MD013/line-length - Line length # MD013/line-length - Line length
MD013: MD013:
# Number of characters # Number of characters
line_length: 80 line_length: 120
# Number of characters for headings # Number of characters for headings
heading_line_length: 80 heading_line_length: 120
# Number of characters for code blocks # Number of characters for code blocks
code_block_line_length: 80 code_block_line_length: 80
# Include code blocks # Include code blocks
@@ -56,8 +56,6 @@ MD013:
tables: false tables: false
# Include headings # Include headings
headings: true headings: true
# Include headings
headers: true
# Strict length checking # Strict length checking
strict: false strict: false
# Stern length checking # Stern length checking
@@ -73,7 +71,7 @@ MD022:
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content # MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
MD024: MD024:
# Only check sibling headings # Only check sibling headings
allow_different_nesting: true siblings_only: true
# MD025/single-title/single-h1 - Multiple top-level headings in the same document # MD025/single-title/single-h1 - Multiple top-level headings in the same document
MD025: MD025:
@@ -128,8 +126,21 @@ MD041:
# MD044/proper-names - Proper names should have the correct capitalization # MD044/proper-names - Proper names should have the correct capitalization
MD044: MD044:
# List of proper names # List of proper names
# names: names:
# - drone - Git
- GitDevOps
- Gitea
- GitHub
- GitLab
- GitOps
- kube-prometheus-stack
- Memcached
- Oracle
- PostgreSQL
- Prometheus
- prometheus-exporter
- SSL
- TLS
# Include code blocks # Include code blocks
code_blocks: false code_blocks: false
@@ -141,4 +152,4 @@ MD046:
# MD048/code-fence-style - Code fence style # MD048/code-fence-style - Code fence style
MD048: MD048:
# Code fence syle # Code fence syle
style: "backtick" style: "backtick"

4
.markdownlintignore Normal file
View File

@@ -0,0 +1,4 @@
.github/
Chart.lock
charts/
node_modules/

View File

@@ -3,7 +3,7 @@ name: homeassistant
description: Helm chart for homeassistant description: Helm chart for homeassistant
type: application type: application
version: "0.1.0" version: "0.1.0"
appVersion: "2022.12.9" appVersion: "2025.11.1"
icon: https://upload.wikimedia.org/wikipedia/commons/6/6e/Home_Assistant_Logo.svg icon: https://upload.wikimedia.org/wikipedia/commons/6/6e/Home_Assistant_Logo.svg
keywords: keywords:

View File

@@ -1,12 +1,10 @@
# homeassistant-charts # homeassistant-charts
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/homeassistant-charts/status.svg)](https://drone.cryptic.systems/volker.raschek/homeassistant-charts)
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/volker-raschek)](https://artifacthub.io/packages/search?repo=volker-raschek) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/volker-raschek)](https://artifacthub.io/packages/search?repo=volker-raschek)
This is a helm chart for [homeassistant](https://github.com/morpheus65535/homeassistant/). This is a helm chart for [homeassistant](https://github.com/morpheus65535/homeassistant/).
This helm chart can be found on [artifacthub.io](https://artifacthub.io/) and This helm chart can be found on [artifacthub.io](https://artifacthub.io/) and can be installed via helm.
can be installed via helm.
```bash ```bash
helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
@@ -17,16 +15,13 @@ helm install homeassistant volker.raschek/homeassistant
### Mountpoints ### Mountpoints
As default all configuration and media files will be stored inside the container As default all configuration and media files will be stored inside the container filesystem. Inside the `values.yaml`
filesystem. Inside the `values.yaml` files the sections `volumes` and files the sections `volumes` and `volumeMounts` to mount additional volumes inside the container. For example to mount
`volumeMounts` to mount additional volumes inside the container. For example to the directories containing configuration and media files on separate mountpoints. The `values.yaml` contains also some
mount the directories containing configuration and media files on separate examples to mount the directories inside the host filesystem.
mountpoints. The `values.yaml` contains also some examples to mount the
directories inside the host filesystem.
#### Troubleshooting #### Troubleshooting
The application use as backend a sqlite database. If the database is stored on a The application use as backend a sqlite database. If the database is stored on a network filesystem like nfs, it is
network filesystem like nfs, it is quite possible that the application lacks or quite possible that the application lacks or is unusable, because sqlite is not designed to be used as a database
is unusable, because sqlite is not designed to be used as a database accesses accesses over network.
over network.

View File

@@ -1,28 +1,14 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automergeStrategy": "merge-commit", "extends": [
"automergeType": "pr", "local>volker.raschek/renovate-config:default#master",
"assignees": [ "volker.raschek" ], "local>volker.raschek/renovate-config:container#master",
"labels": [ "renovate" ], "local>volker.raschek/renovate-config:actions#master",
"packageRules": [ "local>volker.raschek/renovate-config:npm#master",
{ "local>volker.raschek/renovate-config:regexp#master"
"addLabels": [ "renovate/homeassistant", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
},
{
"addLabels": [ "renovate/homeassistant", "renovate/automerge" ],
"automerge": false,
"matchPackageNames": [ "homeassistant" ],
"matchManagers": [ "regex" ]
}
], ],
"rebaseLabel": "renovate/rebase", "customManagers": [
"rebaseWhen": "behind-base-branch",
"regexManagers": [
{ {
"description": "Update container image reference",
"fileMatch": [ "fileMatch": [
"^Chart\\.yaml$" "^Chart\\.yaml$"
], ],
@@ -30,8 +16,53 @@
"appVersion: \"(?<currentValue>.*?)\"\\s+" "appVersion: \"(?<currentValue>.*?)\"\\s+"
], ],
"datasourceTemplate": "docker", "datasourceTemplate": "docker",
"depNameTemplate": "homeassistant", "depNameTemplate": "homeassistant/home-assistant",
"lookupNameTemplate": "docker.io/homeassistant/home-assistant" "lookupNameTemplate": "docker.io/homeassistant/home-assistant",
"versioningTemplate": "semver"
},
{
"fileMatch": ["^README\\.md$"],
"matchStrings": [
"CHART_VERSION=(?<currentValue>.*)"
],
"depNameTemplate": "volker.raschek/homeassistant-charts",
"packageNameTemplate": "https://git.cryptic.systems/volker.raschek/homeassistant-charts",
"datasourceTemplate": "git-tags",
"versioningTemplate": "semver"
}
],
"packageRules": [
{
"addLabels": [
"renovate/automerge",
"renovate/container"
],
"automerge": true,
"excludePackagePatterns": [
"homeassistant/home-assistant"
],
"matchDatasources": [
"docker"
],
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"addLabels": [
"renovate/automerge",
"renovate/documentation"
],
"automerge": true,
"matchDepNames": [
"volker.raschek/homeassistant-charts"
],
"matchUpdateTypes": [
"major",
"minor",
"patch"
]
} }
] ]
} }

View File

@@ -48,9 +48,10 @@ spec:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
{{- with .Values.volumeMounts }} {{- if .Values.persistentStorage.enabled }}
volumeMounts: volumeMounts:
{{- toYaml . | nindent 8 }} - name: config
mountPath: /config
{{- end }} {{- end }}
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
@@ -69,7 +70,15 @@ spec:
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.persistentStorage.enabled }}
volumes: volumes:
{{- with .Values.volumes }} {{- if .Values.persistentStorage.existingClaim }}
{{- toYaml . | nindent 6 }} - name: config
persistentVolumeClaim:
claimName: {{ .Values.persistentStorage.existingClaim }}
{{- else }}
- name: config
persistentVolumeClaim:
claimName: {{ include "homeassistant.fullname" . }}
{{- end }}
{{- end }} {{- end }}

View File

@@ -0,0 +1,24 @@
{{- if .Values.persistentStorage.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
{{- with .Values.persistentStorage.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "homeassistant.fullname" . }}
labels:
{{- include "homeassistant.labels" . | nindent 4 }}
{{- with .Values.persistentStorage.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.persistentStorage.storageClass }}
storageClassName: {{ .Values.persistentStorage.storageClass }}
{{- end }}
resources:
requests:
storage: {{ required "Require size of persistent volume claim" .Values.persistentStorage.size }}
{{- end }}

View File

@@ -37,6 +37,14 @@ ingress:
nodeSelector: {} nodeSelector: {}
persistentStorage:
enabled: false
existingClaim: ""
annotations: {}
labels: {}
storageClass:
size: 15Gi
podAnnotations: {} podAnnotations: {}
podPriorityClassName: "" podPriorityClassName: ""
@@ -70,13 +78,3 @@ service:
port: 8123 port: 8123
tolerations: [] tolerations: []
volumeMounts: []
# - name: config
# mountPath: /config
volumes: []
# - name: config
# hostPath:
# path: /etc/homeassistant
# type: DirectoryOrCreate