Skip to content

Commit

Permalink
add objectsizegreaterthan and lessthan
Browse files Browse the repository at this point in the history
  • Loading branch information
Shunpoco committed Jun 3, 2024
1 parent bd79600 commit e6bfda9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/rgw/lifecycleconfig_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ func GenerateLifecycleRules(in []v1alpha1.LifecycleRule) []types.LifecycleRule {
if local.Filter.And.Tags != nil {
andOperator.Tags = sortS3TagSet(copyTags(local.Filter.And.Tags))
}

if local.Filter.And.ObjectSizeGreaterThan != nil {
andOperator.ObjectSizeGreaterThan = local.Filter.And.ObjectSizeGreaterThan
}

if local.Filter.And.ObjectSizeLessThan != nil {
andOperator.ObjectSizeLessThan = local.Filter.And.ObjectSizeLessThan
}

rule.Filter = &types.LifecycleRuleFilterMemberAnd{Value: andOperator}
}
}
Expand Down

0 comments on commit e6bfda9

Please sign in to comment.