From f0044a22467babf5bee7e21dadabea3e27b582a0 Mon Sep 17 00:00:00 2001 From: Mario Constanti Date: Tue, 19 Nov 2024 13:38:26 +0100 Subject: [PATCH] fix: typo in rbac role for githubcredentials (#214) Signed-off-by: Mario Constanti --- config/rbac/role.yaml | 6 +++--- internal/controller/githubcredentials_controller.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index b390bd2d..78deb244 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -81,7 +81,7 @@ rules: - apiGroups: - garm-operator.mercedes-benz.com resources: - - githubcredential + - githubcredentials verbs: - create - delete @@ -93,13 +93,13 @@ rules: - apiGroups: - garm-operator.mercedes-benz.com resources: - - githubcredential/finalizers + - githubcredentials/finalizers verbs: - update - apiGroups: - garm-operator.mercedes-benz.com resources: - - githubcredential/status + - githubcredentials/status verbs: - get - patch diff --git a/internal/controller/githubcredentials_controller.go b/internal/controller/githubcredentials_controller.go index 81dc1ae8..86a837e7 100644 --- a/internal/controller/githubcredentials_controller.go +++ b/internal/controller/githubcredentials_controller.go @@ -42,9 +42,9 @@ type GitHubCredentialReconciler struct { } //+kubebuilder:rbac:groups=core,resources=events,verbs=create;patch -//+kubebuilder:rbac:groups=garm-operator.mercedes-benz.com,namespace=xxxxx,resources=githubcredential,verbs=get;list;watch;create;update;patch;delete -//+kubebuilder:rbac:groups=garm-operator.mercedes-benz.com,namespace=xxxxx,resources=githubcredential/status,verbs=get;update;patch -//+kubebuilder:rbac:groups=garm-operator.mercedes-benz.com,namespace=xxxxx,resources=githubcredential/finalizers,verbs=update +//+kubebuilder:rbac:groups=garm-operator.mercedes-benz.com,namespace=xxxxx,resources=githubcredentials,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups=garm-operator.mercedes-benz.com,namespace=xxxxx,resources=githubcredentials/status,verbs=get;update;patch +//+kubebuilder:rbac:groups=garm-operator.mercedes-benz.com,namespace=xxxxx,resources=githubcredentials/finalizers,verbs=update //+kubebuilder:rbac:groups="",namespace=xxxxx,resources=secrets,verbs=get;list;watch; func (r *GitHubCredentialReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {