Cap exceeds resource value

Proprietary

Cap resource values that exceed a specific maximum.

org.openrewrite.kubernetes.resource.CapResourceValueToMaximum

Required

The type of resource to search for.

The type of resource value to search for.

The resource maximum to search for to find resources that request more than the maximum.

Optional

Matching files will be modified. This is a glob expression.

mod run . --recipe=org.openrewrite.kubernetes.resource.CapResourceValueToMaximum \ -P resourceValueType=limits \ -P resourceType=memory \ -P resourceLimit=2Gi

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