From aeffb4d21e35f72138407c80c966fbe755b13d73 Mon Sep 17 00:00:00 2001 From: ihiverlet <94982379+ihiverlet@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:31:32 +0200 Subject: [PATCH] modify condition on ingress tls secretName (#166) --- charts/library-chart/Chart.yaml | 2 +- charts/library-chart/templates/_ingress.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/library-chart/Chart.yaml b/charts/library-chart/Chart.yaml index 40743375..74169d66 100644 --- a/charts/library-chart/Chart.yaml +++ b/charts/library-chart/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 name: library-chart -version: 1.5.26 +version: 1.5.27 type: library diff --git a/charts/library-chart/templates/_ingress.tpl b/charts/library-chart/templates/_ingress.tpl index e5b5b31b..6aa4b31c 100644 --- a/charts/library-chart/templates/_ingress.tpl +++ b/charts/library-chart/templates/_ingress.tpl @@ -57,7 +57,7 @@ spec: tls: - hosts: - {{ .Values.ingress.hostname | quote }} - {{- if .Values.ingress.useCertManager }} + {{- if or .Values.ingress.useCertManager .Values.ingress.useTlsSecret}} secretName: tls-cert-{{ include "library-chart.fullname" . }} {{- end }} {{- end }} @@ -97,7 +97,7 @@ spec: tls: - hosts: - {{ .Values.ingress.userHostname | quote }} - {{- if .Values.ingress.useCertManager }} + {{- if or .Values.ingress.useCertManager .Values.ingress.useTlsSecret}} secretName: tls-cert-{{ include "library-chart.fullname" . }} {{- end }} {{- end }} @@ -138,7 +138,7 @@ spec: tls: - hosts: - {{ .Values.ingress.sparkHostname | quote }} - {{- if .Values.ingress.useCertManager }} + {{- if or .Values.ingress.useCertManager .Values.ingress.useTlsSecret }} secretName: tls-cert-{{ include "library-chart.fullname" . }} {{- end }} {{- end }}