if object is a delete marker it must skip tags filter in ILM (#17861)

This commit is contained in:
Harshavardhana
2023-08-18 09:36:23 -07:00
committed by GitHub
parent 11dfc817f3
commit bc7c0d8624
2 changed files with 6 additions and 2 deletions

View File

@@ -261,7 +261,7 @@ func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
if !strings.HasPrefix(obj.Name, rule.GetPrefix()) {
continue
}
if !rule.Filter.TestTags(obj.UserTags) {
if !obj.DeleteMarker && !rule.Filter.TestTags(obj.UserTags) {
continue
}
rules = append(rules, rule)