build icon indicating copy to clipboard operation
build copied to clipboard

Deprecate `spec.builder` in the Build API

Open adambkaplan opened this issue 3 years ago • 2 comments

The Build API includes a spec.builder field, which lets users specify the "builder image" for a particular build strategy. This field was initially added to support build strategies like source-to-image, which can feed in a base image to use for the build.

There are few build strategies that operate like this - Cloud Native Buildpacks might be the closest to using this approach, however our current strategies for buildpacks rely on separate strategies per build pack provider. Moreover, with the Parameters feature we can do away with this specialized API object and use more general-purpose parameters to inject the builder image. For example, the source-to-image build strategies can declare a BUILDER_IMAGE parameter that must be provided in a Build or BuildRun.

/kind feature

/kind cleanup

adambkaplan avatar Nov 03 '21 13:11 adambkaplan