From 11e96640b0f7597398772cf9adcd60606056308e Mon Sep 17 00:00:00 2001 From: ihiverlet <94982379+ihiverlet@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:23:04 +0100 Subject: [PATCH] add certManager secret name (#121) --- charts/library-chart/Chart.yaml | 2 +- charts/library-chart/templates/_ingress.tpl | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/library-chart/Chart.yaml b/charts/library-chart/Chart.yaml index ef8c16f2..3704f2a9 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.18 +version: 1.5.19 type: library diff --git a/charts/library-chart/templates/_ingress.tpl b/charts/library-chart/templates/_ingress.tpl index a8cf35c1..e5b5b31b 100644 --- a/charts/library-chart/templates/_ingress.tpl +++ b/charts/library-chart/templates/_ingress.tpl @@ -97,6 +97,9 @@ spec: tls: - hosts: - {{ .Values.ingress.userHostname | quote }} + {{- if .Values.ingress.useCertManager }} + secretName: tls-cert-{{ include "library-chart.fullname" . }} + {{- end }} {{- end }} rules: - host: {{ .Values.ingress.userHostname | quote }} @@ -135,6 +138,9 @@ spec: tls: - hosts: - {{ .Values.ingress.sparkHostname | quote }} + {{- if .Values.ingress.useCertManager }} + secretName: tls-cert-{{ include "library-chart.fullname" . }} + {{- end }} {{- end }} rules: - host: {{ .Values.ingress.sparkHostname | quote }}