feat: Update version to 0.1.2 and improve recorder.yaml generation in deployment script

This commit is contained in:
sha
2026-03-18 14:43:55 +02:00
parent 83e9c35f19
commit 6414c5881e
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ type: application
annotations:
version-source: github-release:home-assistant/core
version-pattern: "s|^v||"
version: 0.1.1
version: 0.1.2
appVersion: "2026.3.1"
+6 -7
View File
@@ -56,13 +56,12 @@ spec:
- -c
- |
# Build recorder.yaml with postgres connection string
cat > /config/recorder.yaml << EOF
recorder:
db_url: "postgresql://{{ .Values.postgres.user }}:${HA_POSTGRESQL_PASSWORD}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.db }}"
db_retry_wait: 15
auto_purge: true
purge_keep_days: {{ .Values.postgres.purgeKeepDays | default 30 }}
EOF
printf '%s\n' \
"db_url: \"postgresql://{{ .Values.postgres.user }}:${HA_POSTGRESQL_PASSWORD}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.db }}\"" \
"db_retry_wait: 15" \
"auto_purge: true" \
"purge_keep_days: {{ .Values.postgres.purgeKeepDays | default 30 }}" \
> /config/recorder.yaml
# Ensure configuration.yaml includes recorder.yaml
if ! grep -q 'recorder.yaml' /config/configuration.yaml 2>/dev/null; then
echo "" >> /config/configuration.yaml