Red HatPrateek Singh RathoreTutorial
Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install
Summary
Red Hat OpenShift’s BuildConfigs have built container images for years, but Builds for Red Hat OpenShift, based on Shipwright, offer a Kubernetes-native alternative that runs without root privileges and supports Buildah and S2I strategies. The crane-plugin-buildconfig-to-builds plug-in, an upstream release of the Konveyor Crane project, converts BuildConfigs to Shipwright Build resources with a single install command. The plug-in runs inside Crane’s export, transform, and apply flow, reading and writing only local files without contacting a cluster. Version 0.11.0 handles Git, image, and binary sources, carrying over build args, environment variables, volumes, and other fields, while dropping unsupported features like triggers and the Serial run policy. Warnings are written into the converted build and log, and BuildConfigs that cannot be converted remain unchanged with explanatory annotations.
Context
Red Hat OpenShift has built container images with BuildConfigs for years. Builds for Red Hat OpenShift is the Kubernetes-native way to do the same work, based on Shipwright, running builds without root privileges and supporting Buildah and S2I strategies. Moving many BuildConfigs by hand is slow and error-prone.
Approach / What changed
Install the crane-plugin-buildconfig-to-builds plug-in via the Crane plugin manager, then run the standard Crane export, transform, and apply flow to convert BuildConfigs to Shipwright Build resources locally, review the warnings, and apply the output to a target cluster with the Builds for Red Hat OpenShift operator installed.
Takeaways
The plug-in converts Docker and S2I BuildConfig strategies to Buildah and source-to-image strategies respectively; Custom and JenkinsPipeline strategies are skipped and left unchanged with annotations.
ConfigChange, ImageChange, and Webhook triggers are dropped because Shipwright does not support them; builds must be started manually or by external automation after conversion.
The Serial run policy is dropped, so BuildRuns can run concurrently; if build ordering matters, you must serialize runs in your CI/CD pipeline.
FAQ
What happens to BuildConfig triggers after conversion?
The plug-in drops ConfigChange, ImageChange, and Webhook triggers because Shipwright does not support them. You must start builds manually or with your own automation, such as a webhook listener, a pipeline, or a CronJob.
How does the plug-in handle the Serial run policy?
The plug-in drops the Serial run policy, so BuildRuns can run concurrently. If build ordering matters, you must serialize the runs in your CI/CD pipeline.
Which BuildConfig features cannot be converted yet?
The plug-in cannot convert Custom or JenkinsPipeline strategies; those BuildConfigs are left unchanged with annotations. Post-commit hooks, binary builds, and Secrets used as build input are also not yet supported, with workarounds listed in the known limitations page.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.