From f293fe05b3668e1e7334f910a90c5f71c12eddf7 Mon Sep 17 00:00:00 2001 From: ihiverlet Date: Fri, 26 Jan 2024 07:11:24 +0000 Subject: [PATCH] metaflow add use of certmanager --- charts/metaflow/Chart.yaml | 2 +- charts/metaflow/templates/ingress.yaml | 3 +++ charts/metaflow/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/metaflow/Chart.yaml b/charts/metaflow/Chart.yaml index 2d9fcb8..a1340c3 100644 --- a/charts/metaflow/Chart.yaml +++ b/charts/metaflow/Chart.yaml @@ -9,7 +9,7 @@ sources: - https://github.com/Netflix/metaflow - https://github.com/outerbounds/metaflow-tools type: application -version: 0.2.4 +version: 0.2.5 dependencies: - name: postgresql diff --git a/charts/metaflow/templates/ingress.yaml b/charts/metaflow/templates/ingress.yaml index 4b8211f..e8da7fb 100644 --- a/charts/metaflow/templates/ingress.yaml +++ b/charts/metaflow/templates/ingress.yaml @@ -24,6 +24,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/metaflow/values.yaml b/charts/metaflow/values.yaml index c860696..5c5bc00 100644 --- a/charts/metaflow/values.yaml +++ b/charts/metaflow/values.yaml @@ -101,6 +101,8 @@ ingress: # - secretName: chart-example-tls # hosts: # - chart-example.local + useCertManager: false + certManagerClusterIssuer: "" resources: {} # We usually recommend not to specify default resources and to leave this as a conscious