Skip to content

Commit

Permalink
Merge pull request #20 from TechIsCool/patch-1
Browse files Browse the repository at this point in the history
fix(kubebuilder): correct group path for resources
  • Loading branch information
stefanprodan authored Jun 8, 2021
2 parents 2398a71 + 5bbb5ab commit bebe0f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ metadata:
name: source-reader
rules:
- apiGroups:
- source.fluxcd.io
- source.toolkit.fluxcd.io
resources:
- gitrepositories
verbs:
- get
- list
- watch
- apiGroups:
- source.fluxcd.io
- source.toolkit.fluxcd.io
resources:
- gitrepositories/status
verbs:
Expand Down
4 changes: 2 additions & 2 deletions controllers/gitrepository_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ type GitRepositoryWatcher struct {
Scheme *runtime.Scheme
}

// +kubebuilder:rbac:groups=source.fluxcd.io,resources=gitrepositories,verbs=get;list;watch
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=gitrepositories/status,verbs=get
// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories,verbs=get;list;watch
// +kubebuilder:rbac:groups=source.toolkit.fluxcd.io,resources=gitrepositories/status,verbs=get

func (r *GitRepositoryWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
log := logr.FromContext(ctx)
Expand Down

0 comments on commit bebe0f5

Please sign in to comment.