From 6a23904c8cba8afbcd4ed66309f475dabff07e73 Mon Sep 17 00:00:00 2001 From: Jacques ROUSSEL Date: Wed, 5 Mar 2025 15:57:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(helm)=20Add=20support=20for=20conf?= =?UTF-8?q?iguring=20multiple=20hosts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helm/env.d/dev/values.oidc2fer.yaml.gotmpl | 5 +++++ src/helm/oidc2fer/templates/ingress.yaml | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/helm/env.d/dev/values.oidc2fer.yaml.gotmpl b/src/helm/env.d/dev/values.oidc2fer.yaml.gotmpl index 7301ebe..9056b52 100644 --- a/src/helm/env.d/dev/values.oidc2fer.yaml.gotmpl +++ b/src/helm/env.d/dev/values.oidc2fer.yaml.gotmpl @@ -40,5 +40,10 @@ satosa: ingress: enabled: true host: oidc2fer.127.0.0.1.nip.io + tls: + additional: + - hosts: + - oidc2fer2.127.0.0.1.nip.io + secretName: oidc2fer2-tls annotations: nginx.ingress.kubernetes.io/proxy-buffer-size: 128k diff --git a/src/helm/oidc2fer/templates/ingress.yaml b/src/helm/oidc2fer/templates/ingress.yaml index 6eeb292..3578941 100644 --- a/src/helm/oidc2fer/templates/ingress.yaml +++ b/src/helm/oidc2fer/templates/ingress.yaml @@ -44,5 +44,22 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} {{- end }} + {{- range .Values.ingress.tls.additional }} + {{- range .hosts }} + - host: {{ . | quote }} + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: {{ include "oidc2fer.satosa.fullname" $ }} + port: + number: {{ $.Values.satosa.service.port }} + {{- with $.Values.ingress.customBackends }} + {{- toYaml . | nindent 10 }} + {{- end }} + {{- end }} + {{- end }} {{- end }}