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

Proprietary

Rewrite a MachineDeployment into its v1beta2 form. spec.strategy splits into rollout.strategy, deletion.order and remediation, and spec.minReadySeconds moves onto the machines it creates. spec.progressDeadlineSeconds and spec.revisionHistoryLimit are gone, so a resource setting either is reported rather than silently losing them.

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

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