From a705aa907d7909adbae924bee6c6e93cb52adb92 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Sun, 20 Mar 2022 17:15:42 +0100 Subject: [PATCH] TODO: think about personal-vs-all --- pkg/server/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/handler.go b/pkg/server/handler.go index a8e4a90c31c9..a378a1a17496 100644 --- a/pkg/server/handler.go +++ b/pkg/server/handler.go @@ -150,7 +150,7 @@ func WithWorkspaceProjection(apiHandler http.Handler) http.HandlerFunc { toRedirectPath := path.Join("/apis", tenancyv1beta1.SchemeGroupVersion.Group, tenancyv1beta1.SchemeGroupVersion.Version, "workspaces/") if strings.HasPrefix(req.URL.Path, toRedirectPath) { - newPath := path.Join("/services/workspaces", cluster.Name.String(), "all", req.URL.Path) + newPath := path.Join("/services/workspaces", cluster.Name.String(), "personal", req.URL.Path) klog.Infof("Rewriting %s -> %s", path.Join(cluster.Name.Path(), req.URL.Path), newPath) req.URL.Path = newPath }