Skip to content

Commit

Permalink
feat: allow overriding ingress tls secret name (#8761)
Browse files Browse the repository at this point in the history
* feat: allow overriding ingress tls secret name

* use correct version
  • Loading branch information
floreks authored Mar 7, 2024
1 parent a261b9b commit f46f99c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kubernetes-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/kubernetes-dashboard/templates/networking/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/kubernetes-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f46f99c

Please sign in to comment.