chore: Bump version for Home Assistant charts and improve CIDR detection in deployment script

This commit is contained in:
sha
2026-04-18 17:48:37 +03:00
parent 6e993608ac
commit d68f43f77c
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -53,9 +53,9 @@ spec:
- /bin/sh
- -c
- |
# Auto-detect pod and service CIDRs
SVC_CIDR=$(echo $KUBERNETES_SERVICE_HOST | sed 's/\.[0-9]*$/\.0\/16/')
POD_CIDR=$(echo $POD_IP | sed 's/\.[0-9]*$/\.0\/16/')
# Auto-detect pod and service CIDRs (zero last two octets for /16)
SVC_CIDR=$(echo $KUBERNETES_SERVICE_HOST | sed -E 's/\.[0-9]+\.[0-9]+$/.0.0\/16/')
POD_CIDR=$(echo $POD_IP | sed -E 's/\.[0-9]+\.[0-9]+$/.0.0\/16/')
cat > /config/http.yaml << EOF
server_port: {{ .Values.http.server_port }}
ip_ban_enabled: {{ .Values.http.ip_ban_enabled }}