Dashboard script paths incorrect when Ingress is allowed with a PathPrefix
Describe the bug Dashboard fails to show content when an Ingress with a PathPrefix is used
To Reproduce Steps to reproduce the behavior:
- Override the Helm chart values to allow ingress for the dashboard
- set ingress.enabled to true
- set the first ingress.hosts.host to your host name
- set the first ingress.hosts.host.paths.path to your path
- set the first ingress.hosts.host.paths.pathType to Prefix
- set testkube-dashboard.ingress.enabled to true
- set testkube-dashboard.ingress.path as above
- set testkube-dashboard.ingress.hosts as above
- Navigate to the dashboard
- The scripts referenced in the page to load the static resources have absolute path and will fail to be served, making the page blank Expected behavior The static resources should be loaded so that the app will work.
Version / Cluster
- Which testkube version?
- Helm Chart 1.5.68
- Client Version 1.5.27
- Server Version v1.5.30
- Commit bd3d3fdb1c202cfc9d410013089648f47652cbdb
- Built by goreleaser
- Build date 2022-09-19T13:50:40Z
- What Kubernetes cluster? (e.g. GKE, EKS, Openshift etc, local KinD, local Minikube)
- RKE
- What Kubernetes version?
- GitVersion:"v1.22.11"
Screenshots

Additional context NA
@Toxer10 is this UI issue?
Looks like dashboard work only on root level paths, @Toxer10 can you confirm ?
Correct, @exu, I'll create a ticket to handle this use case. Hi, @stand-sure, thanks for reporting this bug. I'll notify you as soon as the bug is solved.
Hey, @stand-sure! A possibility to use PathPrefix with dashboard is implemented. Feel free to use this functionality.