From f46f99c9b144e6be8f6f5666f45e892449e61299 Mon Sep 17 00:00:00 2001 From: Sebastian Florek Date: Thu, 7 Mar 2024 17:57:05 +0100 Subject: [PATCH] feat: allow overriding ingress tls secret name (#8761) * feat: allow overriding ingress tls secret name * use correct version --- charts/kubernetes-dashboard/Chart.yaml | 2 +- charts/kubernetes-dashboard/templates/networking/ingress.yaml | 4 ++++ charts/kubernetes-dashboard/values.yaml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/kubernetes-dashboard/Chart.yaml b/charts/kubernetes-dashboard/Chart.yaml index 75e217b2f0bb..093d0b0943b9 100644 --- a/charts/kubernetes-dashboard/Chart.yaml +++ b/charts/kubernetes-dashboard/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v2 name: kubernetes-dashboard -version: 7.0.1 +version: 7.1.0 description: General-purpose web UI for Kubernetes clusters keywords: - kubernetes diff --git a/charts/kubernetes-dashboard/templates/networking/ingress.yaml b/charts/kubernetes-dashboard/templates/networking/ingress.yaml index ba4d5b312ee1..d86bf438f2b6 100644 --- a/charts/kubernetes-dashboard/templates/networking/ingress.yaml +++ b/charts/kubernetes-dashboard/templates/networking/ingress.yaml @@ -50,7 +50,11 @@ spec: tls: - hosts: {{- toYaml .Values.app.ingress.hosts | nindent 6 }} + {{- if .Values.app.ingress.tls.secretName }} + secretName: {{ .Values.app.ingress.tls.secretName }} + {{- else }} secretName: {{ template "kubernetes-dashboard.app.ingress.secret.name" . }} + {{- end }} {{- end }} rules: {{- if .Values.app.ingress.hosts }} diff --git a/charts/kubernetes-dashboard/values.yaml b/charts/kubernetes-dashboard/values.yaml index ee7afcb56436..335289da43c4 100644 --- a/charts/kubernetes-dashboard/values.yaml +++ b/charts/kubernetes-dashboard/values.yaml @@ -106,6 +106,9 @@ app: # - cluster - adds 'cert-manager.io/cluster-issuer' # - disabled - disables cert-manager annotations scope: default + tls: + # If provided it will override autogenerated secret name + secretName: "" labels: {} annotations: {} # Use the following toleration if Dashboard can be deployed on a tainted control-plane nodes