Skip to content

Commit

Permalink
fix: set proper argocd resources in roles (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Luz Almeida <[email protected]>
  • Loading branch information
leoluz authored Oct 15, 2024
1 parent a2c8da8 commit 61557bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/backend/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ rules:
- apiGroups:
- argoproj.io
resources:
- application
- applications
verbs:
- get
- apiGroups:
- argoproj.io
resources:
- appproject
- appprojects
verbs:
- get
- apiGroups:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ rules:
- apiGroups:
- argoproj.io
resources:
- application
- applications
verbs:
- get
- apiGroups:
- argoproj.io
resources:
- appproject
- appprojects
verbs:
- get
- list
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/accessrequest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const (
// +kubebuilder:rbac:groups=ephemeral-access.argoproj-labs.io,resources=roletemplates,verbs=get;list;watch
// +kubebuilder:rbac:groups=ephemeral-access.argoproj-labs.io,resources=roletemplates/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=ephemeral-access.argoproj-labs.io,resources=roletemplates/finalizers,verbs=update
// +kubebuilder:rbac:groups=argoproj.io,resources=appproject,verbs=get;list;watch;update;patch
// +kubebuilder:rbac:groups=argoproj.io,resources=application,verbs=get
// +kubebuilder:rbac:groups=argoproj.io,resources=appprojects,verbs=get;list;watch;update;patch
// +kubebuilder:rbac:groups=argoproj.io,resources=applications,verbs=get

// Reconcile is the main function that will be invoked on every change in
// AccessRequests desired state. It will:
Expand Down

0 comments on commit 61557bb

Please sign in to comment.