Author: Vincent Demeester [email protected] Date: June 6 2019
Propose to mark knative/build as deprecated and drive user to the Tekton project as their building engine. This doc should be used as a forum for external comment and questions, to resolve any concerns before the Steering Committee decides whether to adopt the proposal.
Starting with v1beta1
API of knative (serving), the embedded build feature will be removed from the Knative Service definition,
see the proposal here.
This removes Serving optional dependency on Knative Build, making Knative Build fully decoupled from the rest of the Knative components and only responsible to build images that will be using in services later on. This responsability is shared with any projects capable of building images in Kubernetes.
The Tekton Pipeline (https://github.com/tektoncd/pipeline) project originates from Knative project (was knative/build-pipeline
) and is enhancing Knative Build functionality, providing advanced CI/CD features on top of the base that Knative laid.
The Tekton Pipeline's Task and TaskRun objects are mapping Knative's Build and BuildTemplate object, making the migration from Knative Build to Tekton Pipelines easy. This migration steps should be documented in the near future.
The Tekton Catalog project (https://github.com/tektoncd/catalog) aims to provides a catalog of re-usable task, similar to what Knative BuildTemplate repository is doing today (https://github.com/knative/build-template)
In this catalog, there is an on-going effort to provide tasks to easily deploy and interact with Knative services (tektoncd/catalog#36). This effort aims to make it easy for user to move from Serving v1alpha1
API to v1beta1
by using Tekton Pipeline Tasks to deploy their services.
User are getting confused wether the should use Knative Build or Tekton Pipeline (see knative/build#606). Deprecating Knative Build would resolve this confusion as it would make it clear that the "building the service(s) image" part is not Knative's responsability and user can use whatever tools is capable of doing that — preferably Tekton Pipelines 👼.
Starting from the Knative release that use v1beta1
as GA github.com/knative/build
will be marked as deprecated . It will stopped to do releases co-versioned and timed with the other Knative components but might still receive bug and security fixes until officialy marked as dead (same dependency of knative serving API version