From d69c77ccace53c4c281effdb80f7bbcafa2d92dc Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 17 Jul 2024 17:53:35 -0400 Subject: [PATCH] generating tls --- k8s/apps/ingresses/templates/authentik.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/k8s/apps/ingresses/templates/authentik.yaml b/k8s/apps/ingresses/templates/authentik.yaml index 7bd7ae8..18b96c5 100644 --- a/k8s/apps/ingresses/templates/authentik.yaml +++ b/k8s/apps/ingresses/templates/authentik.yaml @@ -25,10 +25,12 @@ spec: name: authentik-server namespace: chart-authentik port: 80 +{{ if .Values.global.tls.enabled }} tls: secretName: tls-authentik.core.home.{{ .Values.global.domain }} domains: - main: authentik.core.home.{{ .Values.global.domain }} +{{ end }} --- apiVersion: traefik.containo.us/v1alpha1 kind: Middleware @@ -50,4 +52,8 @@ spec: - X-authentik-meta-outpost - X-authentik-meta-provider - X-authentik-meta-app - - X-authentik-meta-version \ No newline at end of file + - X-authentik-meta-version +--- +{{ if .Values.global.tls.enabled }} +{{ include "homelab.ingress.domain.tls" (dict "global" .Values.global "namespace" "chart-authentik" "prefix" "authentik.core.home" "domain" .Values.global.domain ) }} +{{ end }} \ No newline at end of file