From 5a7eae1b928728bcd79ef2b9cdb7a136a088bd3b Mon Sep 17 00:00:00 2001 From: Tsuzu Date: Thu, 17 Sep 2020 13:30:01 +0900 Subject: [PATCH] Grant manager to access clustergithubapps --- controllers/installation_controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/installation_controller.go b/controllers/installation_controller.go index 9dbca1d..3368ae1 100644 --- a/controllers/installation_controller.go +++ b/controllers/installation_controller.go @@ -40,6 +40,8 @@ type InstallationReconciler struct { // +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=installations,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=installations/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=clustergithubapps,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=clustergithubapps/status,verbs=get;update;patch func (r *InstallationReconciler) Reconcile(req ctrl.Request) (res ctrl.Result, err error) { ctx := context.Background()