Skip to content

Commit

Permalink
Move dedicated watchers to in-controller watches
Browse files Browse the repository at this point in the history
This prevents the resources from getting annotated, and instead uses
the `handler.EnqueueRequestsFromMapFunc` to queue requests based on
changes to the source objects.

Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Oct 27, 2020
1 parent 8bb4f4c commit 2b86162
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 278 deletions.
19 changes: 0 additions & 19 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,8 @@ rules:
- source.toolkit.fluxcd.io
resources:
- buckets
verbs:
- get
- list
- watch
- apiGroups:
- source.toolkit.fluxcd.io
resources:
- buckets/status
verbs:
- get
- apiGroups:
- source.toolkit.fluxcd.io
resources:
- gitrepositories
verbs:
- get
- list
- watch
- apiGroups:
- source.toolkit.fluxcd.io
resources:
- gitrepositories/status
verbs:
- get
113 changes: 0 additions & 113 deletions controllers/bucket_watcher.go

This file was deleted.

113 changes: 0 additions & 113 deletions controllers/gitrepository_watcher.go

This file was deleted.

Loading

0 comments on commit 2b86162

Please sign in to comment.