Skip to content

Commit 2b86162

Browse files
committed
Move dedicated watchers to in-controller watches
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]>
1 parent 8bb4f4c commit 2b86162

File tree

5 files changed

+117
-278
lines changed

5 files changed

+117
-278
lines changed

config/rbac/role.yaml

-19
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,8 @@ rules:
3737
- source.toolkit.fluxcd.io
3838
resources:
3939
- buckets
40-
verbs:
41-
- get
42-
- list
43-
- watch
44-
- apiGroups:
45-
- source.toolkit.fluxcd.io
46-
resources:
47-
- buckets/status
48-
verbs:
49-
- get
50-
- apiGroups:
51-
- source.toolkit.fluxcd.io
52-
resources:
5340
- gitrepositories
5441
verbs:
5542
- get
5643
- list
5744
- watch
58-
- apiGroups:
59-
- source.toolkit.fluxcd.io
60-
resources:
61-
- gitrepositories/status
62-
verbs:
63-
- get

controllers/bucket_watcher.go

-113
This file was deleted.

controllers/gitrepository_watcher.go

-113
This file was deleted.

0 commit comments

Comments
 (0)