Merge pull request #936 from Vafilor/fix/wrong.namespace

fix: issue where wrong namespace was parsed in certain cases
This commit is contained in:
Andrey Melnikov
2021-07-27 11:10:34 -07:00
committed by GitHub

View File

@@ -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 {