Files
truecharts/charts/stable/home-assistant/values.yaml
T
TrueCharts Bot 721f3e020b chore(home-assistant): update image oci.trueforge.org/containerforge/go-yq digest to c6a9c16 (#47396)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[oci.trueforge.org/containerforge/go-yq](https://ghcr.io/trueforge-org/go-yq)
| digest | `c7c64a0` → `c6a9c16` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the [Dependency
Dashboard](../issues/18710) for more information.

Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMzAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEzMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImFwcC9ob21lLWFzc2lzdGFudCIsImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvZGlnZXN0Il19-->
2026-04-22 18:59:33 +00:00

155 lines
4.6 KiB
YAML

# yaml-language-server: $schema=./values.schema.json
image:
repository: oci.trueforge.org/containerforge/home-assistant
pullPolicy: IfNotPresent
tag: "2026.4.3@sha256:3e2b788aab5b3ba570d6bc2335e17433a50c9d0dc464f8f15282530e1e8efde3"
yqImage:
pullPolicy: IfNotPresent
repository: oci.trueforge.org/containerforge/go-yq
tag: "4.53.2@sha256:c6a9c1604f87ab860d9022b8882774597319641ac1f9d90dd6252281920026b9"
service:
main:
ports:
main:
port: 8123
targetPort: 8123
workload:
main:
podSpec:
initContainers:
init:
type: init
enabled: true
imageSelector: yqImage
command: /config/init/init.sh
homeassistant:
trusted_proxies: []
# Enable a prometheus-operator servicemonitor
prometheus:
serviceMonitor:
enabled: false
# interval: 1m
# additionalLabels: {}
persistence:
config:
enabled: true
mountPath: /config
targetSelectAll: true
init:
enabled: true
type: configmap
objectName: init
mountPath: "/config/init"
defaultMode: "0777"
readOnly: true
targetSelector:
main:
init: {}
configmap:
init:
enabled: true
data:
init.sh: |-
#!/bin/sh
{{- $haDBURL := (printf "%s?client_encoding=utf8" ($.Values.cnpg.main.creds.std | trimAll "\"")) }}
config="/config/configuration.yaml"
default="/config/init"
if [ ! -f "$config" ]; then
echo "File [$config] does NOT exist. Creating..."
cp "$default/configuration.yaml.default" "$config"
fi
if ! grep -q "recorder:" "$config"; then
echo "Section [recorder] does NOT exist in [$config]. Appending..."
echo "" >> "$config"
cat "$default/recorder.default" >> "$config"
fi
if ! grep -q "http:" "$config"; then
echo "Section [http] does NOT exist in [$config]. Appending..."
echo "" >> "$config"
cat "$default/http.default" >> "$config"
fi
echo "Updating database URL"
yq -i '.recorder.db_url = "{{ $haDBURL }}"' "$config"
echo "Done"
echo "Creating include files..."
for include_file in groups.yaml automations.yaml scripts.yaml scenes.yaml; do
if [ ! -f "/config/$include_file" ]; then
echo "File [$include_file] missing. Creating"
touch "/config/$include_file"
fi
done
cd "/config" || echo "Could not change path to /config"
echo "Creating custom_components directory..."
mkdir -p "/config/custom_components" || echo "custom_components directory already exists"
echo "Changing to the custom_components directory..."
cd "/config/custom_components" || echo "Could not change path to /config/custom_components"
echo "Downloading HACS"
wget "https://github.com/hacs/integration/releases/latest/download/hacs.zip" || exit 0
if [ -d "/config/custom_components/hacs" ]; then
echo "HACS directory already exist, cleaning up..."
rm -R "/config/custom_components/hacs"
fi
echo "Creating HACS directory..."
mkdir -p "/config/custom_components/hacs"
echo "Unpacking HACS..."
unzip "/config/custom_components/hacs.zip" -d "/config/custom_components/hacs" >/dev/null 2>&1
echo "Removing HACS zip file..."
rm "/config/custom_components/hacs.zip"
echo "Installation complete."
configuration.yaml.default: |-
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
recorder.default: |-
recorder:
purge_keep_days: 30
commit_interval: 3
db_url: {{ (printf "%s?client_encoding=utf8" (.Values.cnpg.main.creds.std | trimAll "\"")) | quote }}
http.default: |-
http:
use_x_forwarded_for: true
trusted_proxies:
{{- if hasKey .Values "ixChartContext" }}
- {{ .Values.ixChartContext.kubernetes_config.cluster_cidr }}
{{- else }}
{{- range .Values.homeassistant.trusted_proxies }}
- {{ . }}
{{- end }}
{{- end }}
cnpg:
main:
enabled: true
user: home-assistant
database: home-assistant
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
capabilities:
add:
- NET_RAW
- NET_BIND_SERVICE