-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc about migrating from v1beta1 to v1 #5415
Conversation
fbabdde
to
68ca3dd
Compare
docs/migrating-v1beta1-to-v1.md
Outdated
The `resources` fields of Task, TaskRun, Pipeline and PipelineRun should not be used due to the deprecation of `PipelineResources`. | ||
|
||
## Replacing `taskRef.bundle` and `pipelineRef.bundle` with Bundle Resolver | ||
Bundle resolver in remote resolution should be used instead of `taskRun.spec.taskRef.bundle` and `pipelineRun.spec.pipelineRef.bundle` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also requires enabling the enable-bundles-resolver
feature flag; please link to https://github.com/tektoncd/pipeline/blob/main/docs/install.md#customizing-the-pipelines-controller-behavior
@abayer would you mind adding the new resolvers flags to that section?
value: Task | ||
``` | ||
|
||
## Replacing ClusterTask with Remote Resolution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give an example of how a cluster task can be replaced with the cluster resolver?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, PR incoming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha, wait, I thought I was responding to #5415 (comment) 🤦 I'll wait for this and #5405 to land and then open a PR to do that. =)
…ation docs Prompted by tektoncd#5415 (comment) Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
a3a9b6c
to
1e29166
Compare
e818e63
to
8fea823
Compare
…ation docs Prompted by #5415 (comment) Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
|
||
```yaml | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Taskrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind: Taskrun | |
kind: TaskRun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment and the one below were not resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might have happened because we changed this to TaskRun.yaml
and removed the kind
.
bundle: docker.io/ptasci67/example-oci@sha256:053a6cb9f3711d4527dd0d37ac610e8727ec0288a898d5dfbd79b25bcaa29828 | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Taskrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind: Taskrun | |
kind: TaskRun |
|
||
## Replacing ClusterTask with Remote Resolution | ||
`ClusterTask` is deprecated. Please use the `cluster` resolver instead, for example: .... | ||
# TODO add example after #5404 is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# TODO add example after #5404 is merged | |
# TODO(5330): add example after #5405 is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this comment was resolved.
### Replacing a `cloudEvent` resource | ||
|
||
You can replace a `cloudEvent` resource with the [`CloudEvent` Catalog `Task`](https://github.com/tektoncd/catalog/tree/main/task/cloudevent). | ||
You can replace the `PipelineResources` with `Tasks` following the [reference](https://github.com/tektoncd/pipeline/blob/main/docs/pipelineresources.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was not resolved
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lbernick The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This commit introduces a doc describing how to migrate from v1beta1 to v1. It details changes of fields as well as deprecations.
4fbbd4f
to
170a635
Compare
/lgtm |
@JeromeJu would you mind opening a follow-up PR addressing some of the comments I left here? |
Will do. Thanks @lbernick for the reminder. |
This commit follows up on tektoncd#5415 and resolves the respective comments.
This commit follows up on tektoncd#5415 and resolves the respective comments.
This commit follows up on #5415 and resolves the respective comments.
Changes
This commit introduces a doc describing how to migrate from v1beta1 to v1. It details changes of fields as well as deprecations.
Preview: Doc link
Fixes: #5330
/kind documentation
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes