Generate Inbound and Outbound from export ranges
Recipe ID
io.moderne.kubernetes.sylva.migrate.dasschiff.GenerateInboundAndOutboundFromExportRangesArtifactorg.openrewrite.recipe:rewrite-kubernetesGenerate a Sylva Inbound or Outbound for each VRFRouteConfiguration.spec.export range the classifications option names as a load balancer pool or an egress NAT pool. Nothing in the legacy group tells the two apart, so an unclassified range is reported and left alone rather than guessed at.
Single recipeProprietary
Usage
You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe io.moderne.kubernetes.sylva.migrate.dasschiff.GenerateInboundAndOutboundFromExportRanges --recipe-option "classifications=m2m/10.250.4.0/24=inbound-bgp:vlan1,m2m/10.250.2.0/30=outbound:vlan1"If the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-kubernetes:RELEASEOptions
| Name | Type | Description |
|---|---|---|
classificationsrequired | String | What each exported range is for, as <vrf>/<cidr>=<role>:<networkRef> separated by commas. The roles are inbound-bgp, inbound-l2 and outbound.e.g. m2m/10.250.4.0/24=inbound-bgp:vlan1,m2m/10.250.2.0/30=outbound:vlan1 |
fileMatcher | String | Matching files will be modified. This is a glob expression. e.g. **/network-*.yml |
Data tables
Structured output this recipe can produce.
- Exported rangesEvery `spec.export` range of a Deutsche Telekom `VRFRouteConfiguration`, and whether it is classified as the load balancer pool or the egress NAT pool the `network-connector.sylvaproject.org` intent group needs it to be.
io.moderne.kubernetes.sylva.migrate.dasschiff.table.ExportRanges - 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