From 4d3574ffa82166b2a3e733ef776b2b746a217dd8 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Thu, 16 May 2024 13:44:20 -0500 Subject: [PATCH] add namespace to authentik proxy --- charts/home-assistant/Chart.yaml | 2 +- charts/home-assistant/templates/ingress-route.yaml | 10 ++++++---- charts/home-assistant/values.yaml | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/charts/home-assistant/Chart.yaml b/charts/home-assistant/Chart.yaml index ab67838..be87a00 100644 --- a/charts/home-assistant/Chart.yaml +++ b/charts/home-assistant/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: home-assistant -version: 0.1.14 +version: 0.1.15 description: Chart for Home Assistant keywords: - home-automation diff --git a/charts/home-assistant/templates/ingress-route.yaml b/charts/home-assistant/templates/ingress-route.yaml index 29b7fb9..1c82f22 100644 --- a/charts/home-assistant/templates/ingress-route.yaml +++ b/charts/home-assistant/templates/ingress-route.yaml @@ -18,7 +18,7 @@ spec: match: "Host(`{{ .Values.ingressRoute.host }}`)" middlewares: - name: "authentik-{{ .Release.Name }}" - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} priority: 10 services: - kind: Service @@ -30,7 +30,8 @@ spec: services: - kind: Service name: {{ .Values.ingressRoute.authentik.outpost }} - port: {{ .Values.ingressRoute.authentik.port }} + port: {{ .Values.ingressRoute.authentik.port }} + namespace: {{ .Values.ingressRoute.authentik.namespace }} {{- end }} --- @@ -54,7 +55,7 @@ spec: match: "Host(`{{ .Values.codeserver.ingressRoute.host }}`)" middlewares: - name: "authentik-{{ .Release.Name }}" - namespace: {{ .Release.Namespace }} + namespace: {{ .Release.Namespace }} priority: 10 services: - kind: Service @@ -66,5 +67,6 @@ spec: services: - kind: Service name: {{ .Values.ingressRoute.authentik.outpost }} - port: {{ .Values.ingressRoute.authentik.port }} + port: {{ .Values.ingressRoute.authentik.port }} + namespace: {{ .Values.ingressRoute.authentik.namespace }} {{- end }} diff --git a/charts/home-assistant/values.yaml b/charts/home-assistant/values.yaml index 0db10a6..1195b4b 100644 --- a/charts/home-assistant/values.yaml +++ b/charts/home-assistant/values.yaml @@ -22,8 +22,9 @@ ingressRoute: enabled: true host: authentik: - outpost: + outpost: "" port: 9000 + namespace: "" metrics: enabled: false serviceMonitor: