From d433ce9dbf2539c10279c5b0dab3d2866567b73d Mon Sep 17 00:00:00 2001 From: Matt DeKrey Date: Sun, 6 Aug 2023 21:40:25 -0500 Subject: [PATCH] Allow skipping tls secret (for use with wildcards) --- charts/single-container/Chart.yaml | 2 +- charts/single-container/templates/ingress.yaml | 2 ++ charts/single-container/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/single-container/Chart.yaml b/charts/single-container/Chart.yaml index 0a03e6c..c785720 100644 --- a/charts/single-container/Chart.yaml +++ b/charts/single-container/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.2 +version: 0.2.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/single-container/templates/ingress.yaml b/charts/single-container/templates/ingress.yaml index 7da7226..1c1a110 100644 --- a/charts/single-container/templates/ingress.yaml +++ b/charts/single-container/templates/ingress.yaml @@ -26,7 +26,9 @@ spec: {{- range $.Values.ingress.hosts }} - {{ .host | quote }} {{- end }} + {{- if not .Values.ingress.tls.noSecret }} secretName: {{ include "single-container.tlssecretname" . }} + {{- end -}} {{- end }} rules: {{- range .Values.ingress.hosts }} diff --git a/charts/single-container/values.yaml b/charts/single-container/values.yaml index 27740c8..d3614bb 100644 --- a/charts/single-container/values.yaml +++ b/charts/single-container/values.yaml @@ -63,6 +63,7 @@ ingress: tls: enabled: true # secretName: example-tls-name + # noSecret: false resources: {} # limits: