fix(home-assistant) Dynamically set trusted proxies (#5846)

* fix(home-assistant) fix home-assistant subnet

* use a better way for trusted proxies

* replace else with a dynamic list instead of hardcoded

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97
2022-12-29 23:25:28 +01:00
committed by GitHub
co-authored by Stavros Kois
parent b83c84de8f
commit 8cc8d32e77
+10 -2
View File
@@ -34,6 +34,9 @@ initContainers:
# # When hostNetwork is true set dnsPolicy to ClusterFirstWithHostNet
# dnsPolicy: ClusterFirstWithHostNet
homeassistant:
trusted_proxies: []
# Enable a prometheus-operator servicemonitor
prometheus:
serviceMonitor:
@@ -138,8 +141,13 @@ configmap:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.16.0.0/16
{{- if hasKey .Values "ixChartContext" }}
- {{ .Values.ixChartContext.kubernetes_config.cluster_cidr }}
{{- else }}
{{- range .Values.homeassistant.trusted_proxies }}
- {{ . }}
{{- end }}
{{- end }}
postgresql:
enabled: true
postgresqlUsername: home-assistant