-
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
Change the Storage Version to V1 Types #6444
Conversation
Skipping CI for Draft Pull Request. |
15332e7
to
70f157c
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Thanks @afrittoli for the catch. That said, now we are converting back to v1beta1 TektonCloudEventDataType, we wouldn't need to put the release note for this for 'action required'. I do appreciate this and opened #6839 to track this. Thanks for the suggestion for the workaround also 🙏 PTAL at the new commit that I pushed for the purpose of easier review, if that looks good, I am happy to squash it. |
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-beta-integration-tests |
43f7952
to
37765c9
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
var customRef *v1beta1.TaskRef | ||
if rpt.PipelineTask.TaskRef != nil { | ||
customRef = &v1beta1.TaskRef{} | ||
customRef.ConvertFrom(ctx, *rpt.PipelineTask.TaskRef) |
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.
Could you please add comments in the code about this?
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
expectedErr error | ||
}{ | ||
{ |
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.
NIT: I guess this does not need to be a loop anymore, it's just one test
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 think it could be but for the format of the expected error to fit in, it might work better with the tc box testing structs? :)
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.
Thanks for this huge amount of work!
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.
/lgtm
Prior to this PR, CRDs are stored in etcd as V1beta1 apiVersion. This commit swaps the storage version to V1 Types for Task, TaskRun, Pipeline and PipelineRun CRDs. From now on we could make changes only to the V1 APIs. This PR makes the following changes: - switch storage to v1beta1 for Task, TaskRun, Pipeline and PipelineRun CRDs(config/) - use V1 types in controllers - convert v1 CRDs to v1beta1 for reconciling features that are not moved to V1 ie. CustomTask - it exports the ConvertFrom functions for v1beta1 Params, Workspaces and TaskRefs for v1beta1 required fields to be reconciled when we swap to v1 storage version. - migrate the v1beta1 Yamls and tests following the [migration guide](https://github.com/tektoncd/pipeline/blob/main/docs/migrating-v1beta1-to-v1.md) - swap the RefSource and Params in remote resolution API from V1beta1 to V1 - for tests and examples that are enabled on default in v1beta1, add beta to for features that are not defaulted in v1 but in v1beta1 ie. resolver_tests and move the examples which requires enable-api-fields to beta under a beta folder
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/lgtm |
Wooot!!! Thank you @JeromeJu !!! |
/meow |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
Prior to this PR, CRDs are stored in etcd as V1beta1 apiVersion. This commit swaps the storage version to V1 Types for Task, TaskRun, Pipeline and PipelineRun CRDs. From now on we could make changes only to the V1 APIs.
This PR makes the following changes:
required fields to be reconciled when we swap to v1 storage version.
required-gates
for features that are not defaulted in v1 but in v1beta1 ie. resolver_tests and move the examples under a beta folderCloses #5541
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