Split bucket item key by `/` to satisfy matcher

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2021-04-30 19:40:32 +02:00
parent de775f6b17
commit 67ebe24873
1 changed files with 1 additions and 1 deletions

View File

@ -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
}