Skip to content

Commit

Permalink
fix: Update rbac for deployments (#27)
Browse files Browse the repository at this point in the history
* fix: Update rbac for deployments

* Update role.yaml
  • Loading branch information
samirtahir91 authored Apr 5, 2024
1 parent 35cb9bb commit cb08343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: manager-role
rules:
- apiGroups:
- ""
- "apps"
resources:
- deployments
verbs:
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/githubapp_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const (
//+kubebuilder:rbac:groups=githubapp.samir.io,resources=githubapps/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=githubapp.samir.io,resources=githubapps/finalizers,verbs=update
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;update;create;delete;watch;patch
//+kubebuilder:rbac:groups="",resources=deployments,verbs=get;list;update;watch;patch
//+kubebuilder:rbac:groups="apps",resources=deployments,verbs=get;list;update;watch;patch

// Reconcile function
func (r *GithubAppReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
Expand Down

0 comments on commit cb08343

Please sign in to comment.