Skip to content

docs: add v1alpha1 to v1beta1 CR migration guide - #2307

Open
Ryntak94 wants to merge 1 commit into
shipwright-io:mainfrom
Ryntak94:docs/v1alpha1-to-v1beta1-migration-1377
Open

docs: add v1alpha1 to v1beta1 CR migration guide#2307
Ryntak94 wants to merge 1 commit into
shipwright-io:mainfrom
Ryntak94:docs/v1alpha1-to-v1beta1-migration-1377

Conversation

@Ryntak94

@Ryntak94 Ryntak94 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Changes

Adds docs/migrating-v1alpha1-to-v1beta1.md, a spec-path oriented migration guide for users moving their Custom Resources from shipwright.io/v1alpha1 to shipwright.io/v1beta1, modelled on the Tekton Pipelines migration doc that the issue points at.

The guide covers Build, BuildRun, BuildStrategy and ClusterBuildStrategy with per-resource mapping tables (v1alpha1 path → v1beta1 path → notes), the fields that were removed, the BuildRun status changes, the build strategy placeholder rewrites, and before/after YAML examples adapted from the samples in this repository. It also documents what the conversion webhook handles automatically versus what has to be changed by hand.

Every mapping is derived from the conversion webhook implementations in pkg/apis/build/v1beta1/*_conversion.go and from the API type definitions, rather than from memory, and the YAML examples were checked by running the conversion code over them. docs/README.md gains a link to the new page.

Docs-only change; no Go code is touched.

Related Issue

Fixes #1377

Type of PR

/kind documentation

Submitter Checklist

  • Includes tests if functionality changed/was added — documentation only
  • Includes docs if changes are user-facing
  • Kind label has been set
  • Release notes block has been filled in, or marked NONE

Release Notes

NONE

Adds docs/migrating-v1alpha1-to-v1beta1.md, a spec-path oriented migration
guide for users moving their Custom Resources from shipwright.io/v1alpha1 to
shipwright.io/v1beta1, modelled on the Tekton Pipelines migration doc.

The guide covers Build, BuildRun, BuildStrategy and ClusterBuildStrategy with
per-resource mapping tables (v1alpha1 path, v1beta1 path, notes), the fields
that were removed, the BuildRun status changes, the build strategy placeholder
rewrites, and before/after YAML examples adapted from the samples in this
repository. It also documents what the conversion webhook handles
automatically versus what has to be changed by hand.

Every mapping is derived from the conversion webhook implementations in
pkg/apis/build/v1beta1/*_conversion.go and from the API type definitions, and
the YAML examples were verified by running the conversion code over them.

Closes shipwright-io#1377

Signed-off-by: Ryan Matthews <ryan.matthews.professional@gmail.com>
@pull-request-size pull-request-size Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 25, 2026
@openshift-ci openshift-ci Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Label for when a PR does not need a release note kind/documentation Categorizes issue or PR as related to documentation. labels Aug 25, 2026
@openshift-ci

openshift-ci Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign apoorvajagtap for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Ryntak94
Ryntak94 marked this pull request as ready for review August 25, 2026 03:10
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 25, 2026
@openshift-ci
openshift-ci Bot requested review from HeavyWombat and dorzel August 25, 2026 03:10
@Ryntak94 Ryntak94 closed this Aug 25, 2026
@Ryntak94 Ryntak94 reopened this Aug 25, 2026
@github-project-automation github-project-automation Bot moved this to Done in Issues Aug 25, 2026
@Ryntak94 Ryntak94 closed this Aug 25, 2026
@Ryntak94 Ryntak94 reopened this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/documentation Categorizes issue or PR as related to documentation. release-note-none Label for when a PR does not need a release note size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] Provide a Spec guideline for CRs for moving to v1beta1

3 participants