Skip to content

Commit 0df2405

Browse files
committed
Fix v1beta1 to v1 migration doc
This commit follows up on #5415 and resolves the respective comments.
1 parent e1fd727 commit 0df2405

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/migrating-v1alpha1-to-v1beta1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spec:
7474
```
7575

7676
## Replacing `PipelineResources` with `Tasks`
77-
You can replace the `PipelineResources` with `Tasks` following the [reference](https://github.com/tektoncd/pipeline/blob/main/docs/pipelineresources.md)
77+
See ["Replacing PipelineResources with Tasks"](https://github.com/tektoncd/pipeline/blob/main/docs/pipelineresources.md#replacing-pipelineresources-with-tasks) for information and examples on how to replace PipelineResources when migrating from v1alpha1 to v1beta1.
7878

7979
## Changes to PipelineResources
8080

docs/migrating-v1beta1-to-v1.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
name: example-task
5050
bundle: python:3-alpine
5151
---
52-
apiVersion: tekton.dev/v1beta1
52+
apiVersion: tekton.dev/v1
5353
kind: Taskrun
5454
spec:
5555
taskRef:
@@ -74,6 +74,15 @@ to `Pipeline`s and `Task`s defined in other namespaces in the cluster.
7474
```yaml
7575
apiVersion: tekton.dev/v1beta1
7676
kind: TaskRun
77+
metadata:
78+
name: cluster-task-reference
79+
spec:
80+
taskRef:
81+
name: example-task
82+
kind: ClusterTask
83+
---
84+
apiVersion: tekton.dev/v1
85+
kind: TaskRun
7786
metadata:
7887
name: cluster-task-reference
7988
spec:

0 commit comments

Comments
 (0)