1 Commits

Author SHA1 Message Date
2373751e83 Update dependency homeassistant to v2023
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-01-07 21:26:51 +01:00
9 changed files with 65 additions and 149 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,10 +1,12 @@
# 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)
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 can be installed via helm.
This helm chart can be found on [artifacthub.io](https://artifacthub.io/) and
can be installed via helm.
```bash
helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
@@ -15,13 +17,16 @@ helm install homeassistant volker.raschek/homeassistant
### Mountpoints
As default all configuration and media files will be stored inside the container filesystem. Inside the `values.yaml`
files the sections `volumes` and `volumeMounts` to mount additional volumes inside the container. For example to mount
the directories containing configuration and media files on separate mountpoints. The `values.yaml` contains also some
examples to mount the directories inside the host filesystem.
As default all configuration and media files will be stored inside the container
filesystem. Inside the `values.yaml` files the sections `volumes` and
`volumeMounts` to mount additional volumes inside the container. For example to
mount the directories containing configuration and media files on separate
mountpoints. The `values.yaml` contains also some examples to mount the
directories inside the host filesystem.
#### Troubleshooting
The application use as backend a sqlite database. If the database is stored on a network filesystem like nfs, it is
quite possible that the application lacks or is unusable, because sqlite is not designed to be used as a database
accesses over network.
The application use as backend a sqlite database. If the database is stored on a
network filesystem like nfs, it is quite possible that the application lacks or
is unusable, because sqlite is not designed to be used as a database accesses
over network.

View File

@@ -1,14 +1,28 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>volker.raschek/renovate-config:default#master",
"local>volker.raschek/renovate-config:container#master",
"local>volker.raschek/renovate-config:actions#master",
"local>volker.raschek/renovate-config:npm#master",
"local>volker.raschek/renovate-config:regexp#master"
],
"customManagers": [
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"assignees": [ "volker.raschek" ],
"labels": [ "renovate" ],
"packageRules": [
{
"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",
"rebaseWhen": "behind-base-branch",
"regexManagers": [
{
"description": "Update container image reference",
"fileMatch": [
"^Chart\\.yaml$"
],
@@ -16,53 +30,8 @@
"appVersion: \"(?<currentValue>.*?)\"\\s+"
],
"datasourceTemplate": "docker",
"depNameTemplate": "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"
]
"depNameTemplate": "homeassistant",
"lookupNameTemplate": "docker.io/homeassistant/home-assistant"
}
]
}

View File

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

View File

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