Skip to content

Commit

Permalink
Fix v1beta1 to v1 migration doc
Browse files Browse the repository at this point in the history
This commit follows up on #5415 and resolves the respective comments.
  • Loading branch information
JeromeJu authored and tekton-robot committed Sep 15, 2022
1 parent abd1ef1 commit 8acdf5c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/migrating-v1alpha1-to-v1beta1.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
```

## Replacing `PipelineResources` with `Tasks`
You can replace the `PipelineResources` with `Tasks` following the [reference](https://github.com/tektoncd/pipeline/blob/main/docs/pipelineresources.md)
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.

## Changes to PipelineResources

Expand Down
19 changes: 16 additions & 3 deletions docs/migrating-v1beta1-to-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ Bundle resolver in remote resolution should be used instead of `taskRun.spec.tas
The [`enable-bundles-resolver`](https://github.com/tektoncd/pipeline/blob/main/docs/install.md#customizing-the-pipelines-controller-behavior) feature flag must be enabled to use this feature.

```yaml
# Before in v1beta1:
apiVersion: tekton.dev/v1beta1
kind: Taskrun
kind: TaskRun
spec:
taskRef:
name: example-task
bundle: python:3-alpine
---
apiVersion: tekton.dev/v1beta1
kind: Taskrun
# After in v1:
apiVersion: tekton.dev/v1
kind: TaskRun
spec:
taskRef:
resolver: bundles
Expand All @@ -72,8 +74,19 @@ The `cluster` resolver allows `Pipeline`s, `PipelineRun`s, and `TaskRun`s to ref
to `Pipeline`s and `Task`s defined in other namespaces in the cluster.

```yaml
# Before in v1beta1:
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: cluster-task-reference
spec:
taskRef:
name: example-task
kind: ClusterTask
---
# After in v1:
apiVersion: tekton.dev/v1
kind: TaskRun
metadata:
name: cluster-task-reference
spec:
Expand Down

0 comments on commit 8acdf5c

Please sign in to comment.