Skip to content

Commit 5601a99

Browse files
committed
do not start sync controllers for disabled PRs
On-behalf-of: @SAP christoph.mewes@sap.com
1 parent 53d0500 commit 5601a99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/controller/syncmanager/controller.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,11 @@ func (r *Reconciler) ensureSyncControllers(ctx context.Context, log *zap.Sugared
443443
}
444444

445445
// start missing controllers
446-
for idx := range publishedResources {
447-
pubRes := publishedResources[idx]
446+
for _, pubRes := range publishedResources {
447+
if !isSyncEnabled(&pubRes) {
448+
continue
449+
}
450+
448451
key := getPublishedResourceKey(&pubRes)
449452

450453
// controller already exists

0 commit comments

Comments
 (0)