Crane plug-in turns OpenShift BuildConfigs into reviewable Shipwright migrations
Red Hat’s new conversion plug-in moves BuildConfigs into the Crane workflow, but teams still need to replace triggers, serialization and unsupported strategies.
Red Hat has published a practical migration path from OpenShift BuildConfig resources to Builds for Red Hat OpenShift. The new crane-plugin-buildconfig-to-builds plug-in converts supported configurations inside Crane’s export-transform-apply workflow, keeping the build migration alongside the namespace’s Secrets, ConfigMaps and ServiceAccounts. The plug-in is an upstream Konveyor Crane release, not yet part of a supported Red Hat product.
What changed
The conversion began as a separate Developer Preview command in January. Version 0.11.0 now installs through Crane’s plug-in manager and participates in the normal namespace transformation flow. It reads and writes local files rather than contacting a cluster, giving platform teams a chance to inspect generated Shipwright resources before applying them.
The converter handles Git, image and binary sources, plus build arguments, environment variables, volumes, builder images, output labels, resource limits, node selectors, timeouts and history limits. Docker builds map to the Buildah strategy; source-to-image configurations map to Shipwright’s source-to-image strategy. Custom and JenkinsPipeline strategies remain unchanged and annotated because they have no direct mapping.
The warnings are part of the migration
This is not a silent translation. When the converter changes or drops a field, it records numbered warnings in the generated resource and in its log. Red Hat’s worked example flags an output image redirected from OpenShift’s internal registry to Quay.io, the loss of ImageStream-triggered rollouts, removal of serial build execution and the absence of automatic ConfigChange triggers.
Those warnings describe behavior that an operator must deliberately replace. Shipwright BuildRun objects can run concurrently, while a BuildConfig using the Serial policy queued builds. Webhook, image-change and configuration-change triggers do not carry over, so teams need their own pipeline, webhook listener, CronJob or other automation to start builds.
Who should test it
The plug-in is aimed at platform teams with namespaces that still use BuildConfigs and a target cluster running the Builds for Red Hat OpenShift operator. Crane 0.11.0 or newer is required, and the source and target may be the same cluster.
A cautious first pass is to export a copy of one namespace, run the transformation locally and review every warning before applying anything. Check registry destinations, rollout dependencies, service accounts and build ordering in particular. After applying the generated resources, the first build must be started with a BuildRun because the original trigger is not retained.
The remaining gaps are material: custom and JenkinsPipeline strategies are skipped, and post-commit hooks, triggers and some input-secret cases require manual workarounds. The plug-in reduces repetitive conversion work, but its useful boundary is explicit: it produces an auditable migration plan rather than promising a drop-in replacement.
sources
- Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in installdevelopers.redhat.com
comments · 0