From e7d458e5835dd19a9e88127f1c77cdd579a58350 Mon Sep 17 00:00:00 2001 From: Kushal Harish Naidu Date: Thu, 23 May 2024 16:03:03 +0000 Subject: [PATCH] remove added rbac --- controllers/packagevariantsets/config/rbac/role.yaml | 8 -------- .../packagevariantset/packagevariantset_controller.go | 1 - 2 files changed, 9 deletions(-) diff --git a/controllers/packagevariantsets/config/rbac/role.yaml b/controllers/packagevariantsets/config/rbac/role.yaml index d1c8d77f..e403fa3f 100644 --- a/controllers/packagevariantsets/config/rbac/role.yaml +++ b/controllers/packagevariantsets/config/rbac/role.yaml @@ -61,11 +61,3 @@ rules: - get - patch - update -- apiGroups: - - porch.kpt.dev - resources: - - packagerevisions - verbs: - - get - - list - - watch diff --git a/controllers/packagevariantsets/pkg/controllers/packagevariantset/packagevariantset_controller.go b/controllers/packagevariantsets/pkg/controllers/packagevariantset/packagevariantset_controller.go index e4cd1811..292aa979 100644 --- a/controllers/packagevariantsets/pkg/controllers/packagevariantset/packagevariantset_controller.go +++ b/controllers/packagevariantsets/pkg/controllers/packagevariantset/packagevariantset_controller.go @@ -73,7 +73,6 @@ const ( //+kubebuilder:rbac:groups=config.porch.kpt.dev,resources=packagevariantsets/status,verbs=get;update;patch //+kubebuilder:rbac:groups=config.porch.kpt.dev,resources=packagevariantsets/finalizers,verbs=update //+kubebuilder:rbac:groups=config.porch.kpt.dev,resources=packagevariants,verbs=create;delete;get;list;patch;update;watch -//+kubebuilder:rbac:groups=porch.kpt.dev,resources=packagerevisions,verbs=get;list;watch //+kubebuilder:rbac:groups=*,resources=*,verbs=list // Reconcile implements the main kubernetes reconciliation loop.