Skip to content

Commit

Permalink
feat(traefik): allow disabling of dashboard's ingress and auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Oct 17, 2022
1 parent a863161 commit f310e28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions argocd/traefik/templates/dashboard.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- if $.Values.traefik.dashboard.enabled -}}

{{- $match := printf "Host(`%s`)" ( join "`) || Host(`" .Values.traefik.dashboard.hosts ) }}
---
apiVersion: apps/v1
Expand Down Expand Up @@ -102,3 +104,5 @@ spec:
- name: chain
tls:
secretName: traefik-dashboard-tls

{{- end -}}
1 change: 1 addition & 0 deletions modules/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ traefik:
regex: apps.${base_domain}
replacement: apps.${cluster_name}.${base_domain}
dashboard:
enabled: false
hosts:
- traefik.apps.${base_domain}
- traefik.apps.${cluster_name}.${base_domain}
Expand Down

0 comments on commit f310e28

Please sign in to comment.