Migrate Machine to cluster.x-k8s.io/v1beta2

Proprietary

Rewrite a Machine into its v1beta2 form. References name an API group rather than an apiVersion, and each metav1.Duration becomes whole seconds under deletion.

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

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 the Cluster API core group to v1beta2