Migrate T-CaaS network resources to the Sylva network connector API
io.moderne.kubernetes.sylva.migrate.dasschiff.MigrateTCaasToSylvaNetworkConnectorArtifactorg.openrewrite.recipe:rewrite-kubernetesMove what can be moved without a decision from Das Schiff's low level network.t-caas.telekom.com group onto the network-connector.sylvaproject.org intent group. Four of the eight legacy kinds move: VRFRouteConfiguration and Layer2NetworkConfiguration together rather than one at a time, because a VRF whose attachment stays behind stops advertising that attachment's subnet, and MirrorTarget and MirrorSelector likewise, because a selector without its collector points at nothing. BGPPeering is report-only. NodeNetworkConfig, NodeNetplanConfig and NetworkConfigRevision are operator output rather than input — the first two are named after a node and owned by it, the third by a hash of its own spec — so their absence is not a gap.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe io.moderne.kubernetes.sylva.migrate.dasschiff.MigrateTCaasToSylvaNetworkConnectorIf 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.
- Migrate
VRFRouteConfigurationcommunitytocommunitiesio.moderne.kubernetes.sylva.migrate.dasschiff.MigrateVrfRouteConfigurationCommunityToCommunities - Migrate
VRFRouteConfigurationandLayer2NetworkConfigurationto Sylvaio.moderne.kubernetes.sylva.migrate.dasschiff.MigrateLowLevelNetworkConfigToIntent - Migrate Das Schiff traffic mirror configuration to intent resources
io.moderne.kubernetes.sylva.migrate.dasschiff.MigrateMirrorConfigToIntent
Data tables
Structured output this recipe can produce.
- Low level network configurationsDeutsche Telekom `network.t-caas.telekom.com` resources that the `network-connector.sylvaproject.org` intent group replaces, and whether each one can be moved mechanically.
io.moderne.kubernetes.sylva.migrate.dasschiff.table.LowLevelNetworkConfigs - Traffic mirror configurationsDeutsche Telekom `MirrorTarget` and `MirrorSelector` resources that the `network-connector.sylvaproject.org` `Collector` and `TrafficMirror` replace, and whether each one can be moved mechanically.
io.moderne.kubernetes.sylva.migrate.dasschiff.table.MirrorConfigs - 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