Migrate the Cluster API core group to v1beta2

Proprietary

Rewrite every cluster.x-k8s.io/v1beta1 resource Cluster API owns into its v1beta2 form, fields and apiVersion together. v1beta1 has been deprecated since Cluster API v1.11 and stops being served in v1.16. To migrate a subset, compose your own list from the per-kind recipes below.

org.openrewrite.kubernetes.clusterapi.MigrateClusterApiCoreToV1beta2
mod run . --recipe=org.openrewrite.kubernetes.clusterapi.MigrateClusterApiCoreToV1beta2

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. Migrate Cluster to cluster.x-k8s.io/v1beta2
  2. Migrate ClusterClass to cluster.x-k8s.io/v1beta2
  3. Migrate Machine to cluster.x-k8s.io/v1beta2
  4. Migrate MachineDeployment to cluster.x-k8s.io/v1beta2
  5. Migrate MachineDrainRule to cluster.x-k8s.io/v1beta2
  6. Migrate MachineHealthCheck to cluster.x-k8s.io/v1beta2
  7. Migrate MachinePool to cluster.x-k8s.io/v1beta2
  8. Migrate MachineSet to cluster.x-k8s.io/v1beta2