Migrate the Cluster API core group to v1beta2
ProprietaryRewrite 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. MigrateClusterApiCoreToV1beta2mod run . --recipe= org. openrewrite. kubernetes. clusterapi. MigrateClusterApiCoreToV1beta2Install 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.
- Migrate
Clustertocluster.x-k8s.io/v1beta2 - Migrate
ClusterClasstocluster.x-k8s.io/v1beta2 - Migrate
Machinetocluster.x-k8s.io/v1beta2 - Migrate
MachineDeploymenttocluster.x-k8s.io/v1beta2 - Migrate
MachineDrainRuletocluster.x-k8s.io/v1beta2 - Migrate
MachineHealthChecktocluster.x-k8s.io/v1beta2 - Migrate
MachinePooltocluster.x-k8s.io/v1beta2 - Migrate
MachineSettocluster.x-k8s.io/v1beta2