Skip to content

Commit cd9b9bb

Browse files
committed
TEP-0114: Remove support for v1alpha1.Run
v1alpha1.Run has been replaced by v1beta1.CustomRun, and the PipelineRun controller no longer creates v1alpha1.Run objects. This commit removes support for v1alpha1.Run in the PipelineRun controller. It maintains the API fields for v1alpha1.Run for use by clients. Note: Retries behavior has changed between v1alpha1.Run and v1beta1.CustomRun. The PipelineRun controller does not consider whether CustomRuns have retries remaining to determine whether they have completed; it only considers their status.
1 parent fb38679 commit cd9b9bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+314
-4169
lines changed

cmd/controller/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"github.com/tektoncd/pipeline/pkg/reconciler/customrun"
3030
"github.com/tektoncd/pipeline/pkg/reconciler/pipelinerun"
3131
"github.com/tektoncd/pipeline/pkg/reconciler/resolutionrequest"
32-
"github.com/tektoncd/pipeline/pkg/reconciler/run"
3332
"github.com/tektoncd/pipeline/pkg/reconciler/taskrun"
3433
"go.opentelemetry.io/otel"
3534
"go.opentelemetry.io/otel/exporters/jaeger"
@@ -131,7 +130,6 @@ func main() {
131130
sharedmain.MainWithConfig(ctx, ControllerLogKey, cfg,
132131
taskrun.NewController(opts, clock.RealClock{}, tpTaskrun),
133132
pipelinerun.NewController(opts, clock.RealClock{}, tpPipelineRun),
134-
run.NewController(),
135133
resolutionrequest.NewController(clock.RealClock{}),
136134
customrun.NewController(),
137135
)

cmd/webhook/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import (
5151

5252
var types = map[schema.GroupVersionKind]resourcesemantics.GenericCRD{
5353
// v1alpha1
54-
v1alpha1.SchemeGroupVersion.WithKind("Run"): &v1alpha1.Run{},
5554
v1alpha1.SchemeGroupVersion.WithKind("VerificationPolicy"): &v1alpha1.VerificationPolicy{},
5655
// v1beta1
5756
v1beta1.SchemeGroupVersion.WithKind("Pipeline"): &v1beta1.Pipeline{},

config/200-clusterrole.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ rules:
2828
# Controller needs cluster access to all of the CRDs that it is responsible for
2929
# managing.
3030
- apiGroups: ["tekton.dev"]
31-
resources: ["tasks", "clustertasks", "taskruns", "pipelines", "pipelineruns", "runs", "customruns"]
31+
resources: ["tasks", "clustertasks", "taskruns", "pipelines", "pipelineruns", "customruns"]
3232
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
3333
- apiGroups: ["tekton.dev"]
3434
resources: ["verificationpolicies"]
3535
verbs: ["get", "list", "watch"]
3636
- apiGroups: ["tekton.dev"]
37-
resources: ["taskruns/finalizers", "pipelineruns/finalizers", "runs/finalizers", "customruns/finalizers"]
37+
resources: ["taskruns/finalizers", "pipelineruns/finalizers", "customruns/finalizers"]
3838
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
3939
- apiGroups: ["tekton.dev"]
40-
resources: ["tasks/status", "clustertasks/status", "taskruns/status", "pipelines/status", "pipelineruns/status", "runs/status", "customruns/status", "verificationpolicies/status"]
40+
resources: ["tasks/status", "clustertasks/status", "taskruns/status", "pipelines/status", "pipelineruns/status", "customruns/status", "verificationpolicies/status"]
4141
verbs: ["get", "list", "create", "update", "delete", "patch", "watch"]
4242
# resolution.tekton.dev
4343
- apiGroups: ["resolution.tekton.dev"]
@@ -88,7 +88,6 @@ rules:
8888
resourceNames:
8989
- pipelines.tekton.dev
9090
- pipelineruns.tekton.dev
91-
- runs.tekton.dev
9291
- tasks.tekton.dev
9392
- clustertasks.tekton.dev
9493
- taskruns.tekton.dev

config/300-run.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ See the following topics to learn how to use Tekton Pipelines in your project:
7272
- [Viewing logs](logs.md)
7373
- [Pipelines metrics](metrics.md)
7474
- [Variable Substitutions](tasks.md#using-variable-substitution)
75-
- [Running a Custom Task (alpha)](runs.md)
75+
- [Running a Custom Task](customruns.md)
7676
- [Remote resolution of Pipelines and Tasks](resolution.md)
7777
- [Trusted Resources](trusted-resources.md)
7878

docs/customruns.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ weight: 206
2626

2727
# Overview
2828

29-
*We are promoting Custom Task from [`v1alpha1.Run`](runs.md) to `v1beta1.CustomRun`, please refer to the [migration doc](migrating-v1alpha1.Run-to-v1beta1.CustomRun.md) for details.*
29+
*`v1beta1.CustomRun` has replaced `v1alpha1.Run` for custom task definitions. Please refer to the [migration doc](migrating-v1alpha1.Run-to-v1beta1.CustomRun.md) for details
30+
on updating `v1alpha1.Run` to `v1beta1.CustomRun` before upgrading to a release that does not support `v1alpha1.Run`.*
3031

3132
A `CustomRun` allows you to instantiate and execute a [Custom
3233
Task](https://github.com/tektoncd/community/blob/main/teps/0002-custom-tasks.md),

docs/deprecations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ The following features are deprecated but have not yet been removed.
3131

3232
The features listed below have been removed but may still be supported in releases that have not reached their EOL.
3333

34-
| Removed Feature | Removal Pull Request | Removal Date | Latest Release with Support | EOL of Supported Release |
34+
| Removed Feature | Removal Pull Request | Removal Date | Latest LTS Release with Support | EOL of Supported Release |
3535
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|-------------------------------------|-------------------------------------|
3636
| [The `PipelineRun.Status.TaskRuns` and `PipelineRun.Status.Runs` fields and the `embedded-status` feature flag along with their functionalities have been tombstoned since v0.45.](https://github.com/tektoncd/community/blob/main/teps/0100-embedded-taskruns-and-runs-status-in-pipelineruns.md) | [[TEP100] Remove Taskruns and Runs Fields for PipelineRunStatus](https://github.com/tektoncd/pipeline/pull/6099) | Jan 25, 2023 | v0.44.0 | Jan 24, 2024 |
3737
| PipelineResources are removed, along with the components of the API that rely on them as proposed in [TEP-0074](https://github.com/tektoncd/community/blob/main/teps/0074-deprecate-pipelineresources.md). See [Removed `PipelineResources` related features](#removed-pipelineresources-related-features) for more info. | [[TEP074] Remove Generic PipelineResources with Rest of Resources Types](https://github.com/tektoncd/pipeline/pull/6150) | Mar 8, 2023 | v0.44.0 | Jan 24, 2024 |
38+
| v1alpha1 Runs are removed, as proposed in [TEP-0114](https://github.com/tektoncd/community/blob/main/teps/0114-custom-tasks-beta.md). | [TEP-0114: Remove support for v1alpha1.Run](https://github.com/tektoncd/pipeline/pull/6508) | April 7, 2023 | v0.44.0 | Jan 24, 2024 |
3839

3940
### Removed PipelineResources related features:
4041

docs/pipelines.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,10 +1626,9 @@ Starting from `v0.47.0`, feature flag `custom-task-version` is removed and only
16261626
can implement behavior that doesn't correspond directly to running a workload in a `Pod` on the cluster.
16271627
For example, a custom task might execute some operation outside of the cluster and wait for its execution to complete.
16281628

1629-
A `PipelineRun` starts a custom task by creating a [`Run`](https://github.com/tektoncd/pipeline/blob/main/docs/runs.md)/[`CustomRun`](https://github.com/tektoncd/pipeline/blob/main/docs/customruns.md) instead of a `TaskRun`.
1629+
A `PipelineRun` starts a custom task by creating a [`CustomRun`](https://github.com/tektoncd/pipeline/blob/main/docs/customruns.md) instead of a `TaskRun`.
16301630
In order for a custom task to execute, there must be a custom task controller running on the cluster
1631-
that is responsible for watching and updating `Run/CustomRun`s which reference their type.
1632-
If no such controller is running, those `Run/CustomRun`s will never complete and Pipelines using them will time out.
1631+
that is responsible for watching and updating `CustomRun`s which reference their type.
16331632

16341633
### Specifying the target Custom Task
16351634

0 commit comments

Comments
 (0)