mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
feat: Update version to 0.1.2 and improve recorder.yaml generation in deployment script
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user