diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 3343c3f..6aed14d 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -35,7 +35,6 @@ rules: - appprojects verbs: - create - - delete - get - list - patch diff --git a/controllers/namespace_controller.go b/controllers/namespace_controller.go index 021986f..759069c 100644 --- a/controllers/namespace_controller.go +++ b/controllers/namespace_controller.go @@ -142,7 +142,7 @@ func (c *SafeNsCache) InitOrPass(r *NamespaceReconciler, ctx context.Context) er //+kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=core,resources=namespaces/status,verbs=get;update;patch //+kubebuilder:rbac:groups=core,resources=namespaces/finalizers,verbs=update -//+kubebuilder:rbac:groups=argoproj.io,resources=appprojects,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups=argoproj.io,resources=appprojects,verbs=get;list;watch;create;update;patch // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state.