From 8095b4967356cde94505d60a1530b2e682081cab Mon Sep 17 00:00:00 2001 From: ihiverlet Date: Fri, 26 Jan 2024 07:39:34 +0000 Subject: [PATCH] redash - add use of certmanager --- charts/redash/Chart.yaml | 4 ++-- charts/redash/templates/ingress.yaml | 3 +++ charts/redash/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/redash/Chart.yaml b/charts/redash/Chart.yaml index a1af8a4..180ebcd 100644 --- a/charts/redash/Chart.yaml +++ b/charts/redash/Chart.yaml @@ -23,7 +23,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.0.4 +version: 0.0.5 # 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 @@ -38,5 +38,5 @@ dependencies: version: 11.6.15 repository: https://charts.bitnami.com/bitnami - name: library-chart - version: 1.5.15 + version: 1.5.19 repository: https://inseefrlab.github.io/helm-charts-interactive-services diff --git a/charts/redash/templates/ingress.yaml b/charts/redash/templates/ingress.yaml index 0eccbb5..78ea07a 100644 --- a/charts/redash/templates/ingress.yaml +++ b/charts/redash/templates/ingress.yaml @@ -17,6 +17,9 @@ spec: tls: - hosts: - {{ .Values.ingress.hostname | quote }} + {{- if .Values.ingress.useCertManager }} + secretName: tls-cert-{{ include "library-chart.fullname" . }} + {{- end }} {{- end }} rules: - host: {{ .Values.ingress.hostname | quote }} diff --git a/charts/redash/values.yaml b/charts/redash/values.yaml index e2ff2df..7702b2c 100644 --- a/charts/redash/values.yaml +++ b/charts/redash/values.yaml @@ -20,6 +20,8 @@ ingress: # - secretName: chart-example-tls # hosts: # - chart-example.local + useCertManager: false + certManagerClusterIssuer: "" redash: image: