diff --git a/controllers/bucket_controller.go b/controllers/bucket_controller.go index 3b5fb4a95..daf3e21d9 100644 --- a/controllers/bucket_controller.go +++ b/controllers/bucket_controller.go @@ -236,7 +236,7 @@ func (r *BucketReconciler) reconcile(ctx context.Context, bucket sourcev1.Bucket continue } - if matcher.Match([]string{object.Key}, false) { + if matcher.Match(strings.Split(object.Key, "/"), false) { continue }