Migrate the Cluster API core group to v1beta2
ProprietaryRewrite cluster.x-k8s.io/v1beta1 resources into their v1beta2 form, fields and apiVersion together. v1beta1 has been deprecated since Cluster API v1.11 and stops being served in v1.16. A resource moves as a whole or not at all: where v1beta2 dropped a field outright, or a duration cannot be read exactly, it stays on v1beta1 and the reason is reported.
org. openrewrite. kubernetes. clusterapi. MigrateClusterApiCoreResourceToV1beta2Optional
Only migrate this kind. Omit to migrate every kind the core group owns, though org.openrewrite.kubernetes.clusterapi.MigrateClusterApiCoreToV1beta2 names them one by one and is the better entry point.
Matching files will be modified. This is a glob expression.
mod run . --recipe= org. openrewrite. kubernetes. clusterapi. MigrateClusterApiCoreResourceToV1beta2Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.