From 67ebe248735e2f7c8efa3db20cb9d477626c5373 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 30 Apr 2021 19:40:32 +0200 Subject: [PATCH] Split bucket item key by `/` to satisfy matcher Signed-off-by: Hidde Beydals --- controllers/bucket_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }