change kubectl pods' namespace from kubesphere to kubesphere-controls, and ensure delete kubectl-rs when user is deleted

This commit is contained in:
richardxz
2018-06-26 15:48:01 +08:00
parent f1d5ab3a92
commit 7dc16a532a
5 changed files with 29 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ import (
"k8s.io/client-go/tools/cache"
"kubesphere.io/kubesphere/pkg/client"
"kubesphere.io/kubesphere/pkg/constants"
"kubesphere.io/kubesphere/pkg/options"
)
@@ -42,7 +43,7 @@ const (
admin = "admin"
editor = "editor"
viewer = "viewer"
kubectlNamespace = "kubesphere"
kubectlNamespace = constants.KubeSphereControlNameSpace
kubectlConfigKey = "config"
openpitrix_runtime = "openpitrix_runtime"
)