Skip to content

Commit

Permalink
fix: typo in rbac role for githubcredentials (#214)
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Constanti <[email protected]>
  • Loading branch information
bavarianbidi authored Nov 19, 2024
1 parent 6bbe36d commit f0044a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ rules:
- apiGroups:
- garm-operator.mercedes-benz.com
resources:
- githubcredential
- githubcredentials
verbs:
- create
- delete
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/githubcredentials_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f0044a2

Please sign in to comment.