This change includes two recipes: 1 to find resource values (either limits or requests) which exceed a given maximum and 1 to cap values that exceed the maximum down to the max.
The units in the original will be preserved, even if the unit specified in the resourceLimit is of a different type (Gi instead of M).
This change includes two recipes: 1 to find resource values (either
limits
orrequests
) which exceed a given maximum and 1 to cap values that exceed the maximum down to the max.The units in the original will be preserved, even if the unit specified in the
resourceLimit
is of a different type (Gi
instead ofM
).Depends on the helper in PR https://github.com/openrewrite/rewrite/pull/736