Migrate Cluster API Provider Metal3 resources to v1beta2
org.openrewrite.kubernetes.clusterapi.MigrateMetal3ProviderToV1beta2Artifactorg.openrewrite.recipe:rewrite-kubernetesChange the apiVersion of the resources served by Cluster API Provider Metal3 to v1beta2. Check first that the Metal3 release you run serves v1beta2 at all: as late as provider v1.10.1, api/v1beta1 is still the hub version and no v1beta2 package is shipped, and an apiVersion naming a version the CRD does not serve is rejected on apply. This recipe changes apiVersion only. Whatever else this provider reshaped in v1beta2 is defined by the provider rather than by the Cluster API contract, so review the resources it touches against the provider's own migration notes.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.kubernetes.clusterapi.MigrateMetal3ProviderToV1beta2If the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-kubernetes:RELEASEDefinition
This recipe runs the following recipes in order.
- Change Kubernetes API version
org.openrewrite.kubernetes.ChangeApiVersion
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats