mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
chore: Bump version to 0.1.37-dev for home-assistant-dev and 0.1.23 for home-assistant; update db_url encoding in deployment script
This commit is contained in:
@@ -4,7 +4,7 @@ description: Home Assistant development build - wraps home-assistant chart with
|
||||
type: application
|
||||
annotations:
|
||||
version-source: dockerhub-dev:homeassistant/home-assistant:^[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+$
|
||||
version: 0.1.36-dev
|
||||
version: 0.1.37-dev
|
||||
appVersion: "2026.5.0.dev202604180313"
|
||||
dependencies:
|
||||
- name: home-assistant
|
||||
|
||||
@@ -5,5 +5,5 @@ type: application
|
||||
annotations:
|
||||
version-source: github-release:home-assistant/core
|
||||
version-pattern: "s|^v||"
|
||||
version: 0.1.22
|
||||
version: 0.1.23
|
||||
appVersion: "2026.4.3"
|
||||
|
||||
@@ -109,9 +109,20 @@ spec:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
# URL-encode password so special chars (/, @, :, #, ?, %, &, +) don't break the db_url
|
||||
ENCODED_PW=$(printf '%s' "$HA_POSTGRESQL_PASSWORD" | sed \
|
||||
-e 's|%|%25|g' \
|
||||
-e 's|/|%2F|g' \
|
||||
-e 's|@|%40|g' \
|
||||
-e 's|:|%3A|g' \
|
||||
-e 's|#|%23|g' \
|
||||
-e 's|?|%3F|g' \
|
||||
-e 's|&|%26|g' \
|
||||
-e 's|+|%2B|g' \
|
||||
-e 's| |%20|g')
|
||||
# Build recorder.yaml with postgres connection string
|
||||
printf '%s\n' \
|
||||
"db_url: \"postgresql://{{ .Values.postgres.user }}:${HA_POSTGRESQL_PASSWORD}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.db }}\"" \
|
||||
"db_url: \"postgresql://{{ .Values.postgres.user }}:${ENCODED_PW}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.db }}\"" \
|
||||
"db_retry_wait: 15" \
|
||||
"auto_purge: true" \
|
||||
"purge_keep_days: {{ .Values.postgres.purgeKeepDays | default 30 }}" \
|
||||
|
||||
Reference in New Issue
Block a user