From 55615b9680c47192d6798aed77016a13a3c34660 Mon Sep 17 00:00:00 2001 From: mloiseleur <97035654+mloiseleur@users.noreply.github.com> Date: Fri, 10 Feb 2023 11:04:35 +0100 Subject: [PATCH] :bug: Disabling dashboard ingressroute should delete it (#785) --- ...oard-hook-ingressroute.yaml => dashboard-ingressroute.yaml} | 3 --- ...ingressroute_test.yaml => dashboard-ingressroute_test.yaml} | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) rename traefik/templates/{dashboard-hook-ingressroute.yaml => dashboard-ingressroute.yaml} (85%) rename traefik/tests/{dashboard-hook-ingressroute_test.yaml => dashboard-ingressroute_test.yaml} (97%) diff --git a/traefik/templates/dashboard-hook-ingressroute.yaml b/traefik/templates/dashboard-ingressroute.yaml similarity index 85% rename from traefik/templates/dashboard-hook-ingressroute.yaml rename to traefik/templates/dashboard-ingressroute.yaml index a95786407..c8bc0a08b 100644 --- a/traefik/templates/dashboard-hook-ingressroute.yaml +++ b/traefik/templates/dashboard-ingressroute.yaml @@ -5,9 +5,6 @@ metadata: name: {{ template "traefik.fullname" . }}-dashboard namespace: {{ template "traefik.namespace" . }} annotations: - helm.sh/hook: "post-install,post-upgrade" - meta.helm.sh/release-name: {{ .Release.Name }} - meta.helm.sh/release-namespace: {{ template "traefik.namespace" . }} {{- with .Values.ingressRoute.dashboard.annotations }} {{- toYaml . | nindent 4 }} {{- end }} diff --git a/traefik/tests/dashboard-hook-ingressroute_test.yaml b/traefik/tests/dashboard-ingressroute_test.yaml similarity index 97% rename from traefik/tests/dashboard-hook-ingressroute_test.yaml rename to traefik/tests/dashboard-ingressroute_test.yaml index a0191f7e0..eee89a2c3 100644 --- a/traefik/tests/dashboard-hook-ingressroute_test.yaml +++ b/traefik/tests/dashboard-ingressroute_test.yaml @@ -1,6 +1,6 @@ suite: Dashboard IngressRoute configuration templates: - - dashboard-hook-ingressroute.yaml + - dashboard-ingressroute.yaml tests: - it: should allow disabling dashboard exposure using ingressRoute set: