Ensure lifecycle rule on StorageBucket

Proprietary

When defining a rule, you can specify any set of conditions for any action. The following configuration defines a rule to delete all objects older than 7 days in a bucket.

org.openrewrite.kubernetes.LifecycleRuleOnStorageBucket
mod run . --recipe=org.openrewrite.kubernetes.LifecycleRuleOnStorageBucket

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add Kubernetes configuration