-
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
[TEP074] Remove Storage, Git and Generic PipelineResources #6150
Conversation
Skipping CI for Draft Pull Request. |
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.
|
The following is the coverage report on the affected files.
|
a3e8f86
to
4d876da
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.
|
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 doing this!! This is a lot of removal. It must have been extremely tedious.
4d876da
to
17627b1
Compare
/retest |
/lgtm |
CRD pipelineresources has been removed in tektoncd#6150. We should also remove it from delete_pipeline_resources. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
CRD pipelineresources has been removed in #6150. We should also remove it from delete_pipeline_resources. Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
Heads up, I think this may be a similar problematic change as #6206 where we're removing both the functionality and API client types in the same change. Can we consider reverting API fields back to tombstones at least for the v1beta1 client? 🙏 |
There may have been some discussion around this already but I'm having trouble finding it (#6150 (comment) is the closest thing I'm seeing). I think this is reasonable; happy to open a PR |
Config-artifact-pvc was introduce in https://github.com/tektoncd/pipeline/pull/866/files which was deleted in tektoncd#6150 These two resources are assumed to be used and needed by the storage pipeline resources which are gone now. These must be no longer needed and safe to clean up. Signed-off-by: Priti Desai <pdesai@us.ibm.com>
Config-artifact-pvc was introduce in https://github.com/tektoncd/pipeline/pull/866/files which was deleted in #6150 These two resources are assumed to be used and needed by the storage pipeline resources which are gone now. These must be no longer needed and safe to clean up. Signed-off-by: Priti Desai <pdesai@us.ibm.com>
Robocat is stuck on Pipelines `v20230307-771fb665f2` due to an error in the nightly deploy TaskRun. See for example from the most recent run: ``` 2024-02-15T03:01:00.091452354Z + kubectl apply --kubeconfig /workspace/targetCluster/kubeconfig -k pipeline/overlays/robocat 2024-02-15T03:01:02.736006696Z error: no matches for Id ~G_v1_ConfigMap|tekton-pipelines|config-artifact-bucket; failed to find unique target for patch ~G_v1_ConfigMap|config-artifact-bucket ``` The referenced ConfigMap was removed from Pipelines in tektoncd/pipeline#6150 which was merged on March 7th. Remove the file from the overlay as it's no longer used.
Robocat is stuck on Pipelines `v20230307-771fb665f2` due to an error in the nightly deploy TaskRun. See for example from the most recent run: ``` 2024-02-15T03:01:00.091452354Z + kubectl apply --kubeconfig /workspace/targetCluster/kubeconfig -k pipeline/overlays/robocat 2024-02-15T03:01:02.736006696Z error: no matches for Id ~G_v1_ConfigMap|tekton-pipelines|config-artifact-bucket; failed to find unique target for patch ~G_v1_ConfigMap|config-artifact-bucket ``` The referenced ConfigMap was removed from Pipelines in tektoncd/pipeline#6150 which was merged on March 7th. Remove the file from the overlay as it's no longer used.
The link to example files was broken, as those files were removed in: tektoncd/pipeline#6150 Update the link to match the example that is now being used: https://github.com/tektoncd/dashboard/blob/main/docs/tutorial
The link to example files was broken, as those files were removed in: tektoncd/pipeline#6150 Update the link to match the example that is now being used: https://github.com/tektoncd/dashboard/blob/main/docs/tutorial Also update the example images
The link to example files was broken, as those files were removed in: tektoncd/pipeline#6150 Update the link to match the example that is now being used: https://github.com/tektoncd/dashboard/blob/main/docs/tutorial Also update the example images
This is going to be the last PR for PipelineResources removal.
Changes
This commit removes the Git, Storage and Generic PipelineResources:
pkg/apis/resource/v1alpha1/storage
APIpkg/apis/resource/v1alpha1/git
APIpkg/artifacts
APIpkg/reconciler/taskrun/validate_resources.go
topkg/reconciler/taskrun/validate_taskrun.go
pkg/reconciler/taskrun/resources/taskresourceresolution.go
topkg/reconciler/taskrun/resources/taskresolution.go
Reasons why removing
Git
,Storage
Resources andpkg/artifacts
together:The Git and Storage PipelineResources both uses artifact storage, which made removing Storage PipelineResources along to be intervened by changes on Git Resources that are inappropriate to separate. See the decision made after attempting to remove Storage Resources along for more detail.
artifacts
package?The artifacts package has also dependencies on storage resources for the artifacts storage setup, which made it hard to separate the removal of storage resources first. See the decision after the attempt to remove artifacts package first.
pipelineResources
is removed.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