fix csr controller bug

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-06-07 22:45:19 +08:00
parent 4f98fac39d
commit 80953f5945
2 changed files with 13 additions and 22 deletions

View File

@@ -31,12 +31,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/source"
)
const (
workspaceAdminDescription = "Allows admin access to perform any action on any resource, it gives full control over every resource in the workspace."
workspaceRegularDescription = "Normal user in the workspace, can create namespace and DevOps project."
workspaceViewerDescription = "Allows viewer access to view all resources in the workspace."
)
// Add creates a new Workspace Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller
// and Start it when the Manager is Started.
func Add(mgr manager.Manager) error {