Migrate Cluster API Provider AWS resources to v1beta2
org.openrewrite.kubernetes.clusterapi.MigrateAwsProviderToV1beta2Artifactorg.openrewrite.recipe:rewrite-kubernetesChange the apiVersion of the resources served by Cluster API Provider AWS to v1beta2, across the infrastructure, bootstrap and controlplane groups it contributes to. ROSA* and Nodeadm* are absent because they were introduced at v1beta2 and never had a v1beta1. 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.MigrateAwsProviderToV1beta2If 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 - Change Kubernetes API version
org.openrewrite.kubernetes.ChangeApiVersion - 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