mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-27 01:56:03 +08:00
Merge pull request #936 from Vafilor/fix/wrong.namespace
fix: issue where wrong namespace was parsed in certain cases
This commit is contained in:
@@ -275,7 +275,7 @@ func UnaryInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfi
|
||||
pieces := strings.Split(workspaceAndNamespace, "--")
|
||||
if len(pieces) > 1 {
|
||||
workspaceName := pieces[0]
|
||||
namespace := pieces[1]
|
||||
namespace := pieces[len(pieces)-1]
|
||||
|
||||
isAuthorizedRequest, ok := req.(*api.IsAuthorizedRequest)
|
||||
if ok {
|
||||
|
Reference in New Issue
Block a user