-
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
Handle PipelineResources
when swapping v1
to the storage version
#5967
Comments
One thing to consider, because those fields are in |
Yeah pipeline resources have been deprecated since v0.30 so I think it can be removed |
Yes please, let's remove from the code base which will give us an opportunity to comply the use cases mentioned in the TEP. At the same time, an opportunity to reconsider and design features which could potentially replace resources - https://github.com/tektoncd/community/blob/main/teps/0074-deprecate-pipelineresources.md#features-that-will-replace-pipelineresources-functionality |
Also updated TEP0074 at tektoncd/community#922 |
Since |
I don't like the idea of backdating our deprecation docs to say that we deprecated something 9 months ago, but I agree that taskrun.status.cloudevents is pretty meaningless without pipelineresources, and it doesn't make sense to wait 9 months after "deprecating" taskrun.status.cloudevents before removing PipelineResources. Maybe we can update the PipelineResources line of the deprecation docs to note that it includes cloudevents, and remove release notes from #5937 to avoid confusion? |
Agreed on the drawback of backdating deprecation doc for the mentioned reason. Will instead work on updating and adding new instructions for deprecation as suggested. |
Small-scale design for planing out and evaluating different approaches:
I personally tend to move forward with the last approach as it is more efficient and easier to rollback. |
The last approach SGTM. Thanks for breaking this into small changes! |
This commit removes the CloudEvent Resources support. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent` the respective example test and docs for cloud-event resources.
This commit removes the CloudEvent Resources support. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent` the respective example test and docs for cloud-event resources.
This commit removes the CloudEvent Resources support. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent` the respective example test and docs for cloud-event resources.
Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/image` the imagedigestexporter and the docs for image resources.
Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/image` the imagedigestexporter and the docs for image resources.
This commit removes the CloudEvent Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent`, its respective example test, relevant functions in cloud_event_controller and docs for cloud-event resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the Cluster Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cluster` the kubeConfigWriter image and docs for cluseter resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the CloudEvent Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent`, its respective example test, relevant functions in cloud_event_controller and docs for cloud-event resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the CloudEvent Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/cloudevent`, its respective example test, relevant functions in cloud_event_controller and docs for cloud-event resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the CloudEvent Resources support. This PR removes , its respective example test, relevant functions in cloud_event_controller and docs for cloud-event resources. Removal of , as in tektoncd#5967 has been broken up into removal of each resources packages for the code standard.
One question for removing the image resource at #6002 is that seems the dependencies is at #6002 where the resources itself is being removed. Then in this case, there is no way other than extracting it to keep the |
Can we please tag this to v0.45 milestones as it shall target the next release? Thanks @tektoncd/core-maintainers |
This commit removes the PullRequest Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pullrequest` and docs for PullRequest resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the PullRequest Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pullrequest` and docs for PullRequest resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the Image Resources support. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/image` and the docs for image resources.
This commit removes the PullRequest Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pullrequest` and docs for PullRequest resources. Removal of `pipelineResources`, as in #5967 has been broken up into removal of each resources packages for the `small PR` code standard.
This commit removes the PullRequest Resources support. This PR removes `github.com/tektoncd/pipeline/pkg/apis/resource/v1alpha1/pullrequest` and docs for PullRequest resources. Removal of `pipelineResources`, as in tektoncd#5967 has been broken up into removal of each resources packages for the `small PR` code standard.
The last decision to be made for removing
The 2nd option might be preferred as it could be more efficient. The Git and Storage PipelineResources are removed within the same pull request because the git resources also uses artifact storage. Therefore, so as not to make it a larger chunk, shall we consider removing #6002 as the last pipelineResource type along with the removal of the generic pipelineResources functions? |
This comment aims to tracks the progress of this issue and mitigate the confusions of the decisions being made on the sequence of these removals:
|
Trying to keep PRs small and review-able so looking back on Reasons why removing Git, Storage Resources and Also in the PR comment of #6150: At the beginning I also attempted to start from the smallest PR possible but changed directions inevitably during the process of impelmentations.
Please feel free to point out if there are any way to break this PR down or if there are any negligence above. |
Some questions that might need consensus to be reached before merging the PRs:
|
Another question encountered when is when would we extract the git-init image. It seems the removal of generic pipeline-resources functions are blocked by the extraction of the git-init image as the pipelineResourceResults are needed here by the git-init image. And also thanks to the pointers from @pritidesai that for this is also used by spire, currently looking into how this shall be moved forward. It has been previously used in: |
I'm not sure if I fully understand, but I don't think the removal of git-init image should be blocked by the "extraction" right? i.e. we can remove the source code of git-init from the pipeline repo now, and migrate the source code to a separate repo from the old revision of the |
The I also agree with @QuanZhang-William on the rest 🙃 |
Thanks @vdemeester and the offline discussion with @QuanZhang-William . |
@JeromeJu please help evaluate the status of this epic. I am moving it to 0.47 for now but looks like all the tasks are marked as done. Are all the PRs merged for each task in the PR description? |
Closing since PipelineResources have been fully removed! |
Context
It has been way longer than the deprecation cycle since
PipelineResources
had been deprecated. Decisions have been made both under this discussion and during the WG as we are moving forward with removing all thepipelineResources
fromv1beta1
code base (see 2023 Jan06 update for more details).This issue aims to track the progress and the implementation details of tackling this v1 migration blocker.
Work plan
Original work plan:
PipelineResources
removed while others are still supported.[2023 Jan06] update
PipelineResources
was deprecated but not removed fromv1beta1
according to #5785 and the WG decisions at Apr 11, 2022 and confirmed at Nov 28, 2022.However when swapping v1 to be the storage version, the
PipelineResources
related logics could not be handled by changingv1beta1
tov1
. eg. for the taskRun reconciler validate_resources.go would not be valid if we swap tov1.TaskSpec
asPipelineResources
are removed during the migration to v1.One approach would need to be decided about handling the deprecated but not removed fields as
PipelineResources
for reconciling.Expected work flow
/kind misc
subTask of #5541
The text was updated successfully, but these errors were encountered: