Skip to content

Commit 97ee3be

Browse files
authored
[Library chart] Allow custom tls secret (#234)
1 parent 1483da1 commit 97ee3be

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

charts/library-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v2
22
name: library-chart
3-
version: 1.7.3
3+
version: 1.7.4
44
type: library

charts/library-chart/templates/_ingress.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ spec:
160160
tls:
161161
- hosts:
162162
- {{ .Values.ingress.sparkHostname | quote }}
163-
{{- if or .Values.ingress.useCertManager .Values.ingress.useTlsSecret }}
163+
{{ if and .Values.ingress.useTlsSecret (ne .Values.ingress.tlsSecretName "") }}
164+
secretName: {{ .Values.ingress.tlsSecretName }}
165+
{{ else if or .Values.ingress.useCertManager .Values.ingress.useTlsSecret }}
164166
secretName: tls-cert-{{ include "library-chart.fullname" . }}
165167
{{- end }}
166168
{{- end }}

0 commit comments

Comments
 (0)