-
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
PipelineResourceResult Renamed and Moving off resource_types #6197
Comments
One question regarding pkg/pod/status: when will we move it to v1? I am assuming by the time when v1 is swapped as storage version? |
How PipelineResourceResult has been introduced and removed, this is tracked to find the actual purpose of this struct:
3fe2584#diff-5589d22b1568e49f5351ae729c0c0214014a7d88bd82c8b7ae31eb7ea9d41cb8: Then its modification to add more generic functions Then made more generic to include other results |
/kind misc |
Here are a couple of questions to be answered before moving forward after the offline conversation with @dibyom
|
no strong feelings - if the main use for this struct is writing to termination message maybe pkg/termination?
not sure what a more generic solution would be so a struct sounds find
I like TektonTerminationMessage since this struct encapsulates the different kinds of things we write to the termination message |
I think if we still use this struct in v1beta1.taskrun, we may need to keep it in the |
I think the The Line 268 in 90f33a6
Line 290 in 90f33a6
Yes,
Yes, I am thinking the same, it will go under The PipelineResourceResult can be stripped down to:
There is a possibility of deleting Line 323 in 90f33a6
or while reading from a termination message in
Please elaborate on using |
Thanks all for the inputs and guidance on this @afrittoli @pritidesai @dibyom @lbernick @Yongxuanzhang , There are two concerns related with the migration of
Therefore, the following steps are planned to move forward targeting a cleanup for easier storage swap:
|
This comment tracks the refactor of the PipelineResourceResult struct:
mark fields/ name deprecated |
A followup PR for #6434 will move the renamed struct to a proper space since resource_types is no longer used after the removal of all PipelineResources. |
So far we have renamed and going to tombstone ResourcesResult + move the renamed RunResult to a different package. |
In v1beta1 PipelineResourceResult is both a struct and a result type that was used to be in the resource related codebase. Now that we are removing pipelineResources, either renaming or a new design is required to be moved to V1. It is only used now internally as a result-like struct, the usage could be found below.
There are 3 resultTypes of PipelineResourceResult:
This would need to be brought to v1 in some way:
The usage of
PipelineResourceResult
with respective types:pipeline/pkg/pod/status.go
Line 258 in 5b702f9
Goal of this issue is:
PRs for review (chained in sequence:)
Stop populating resourceName in git-init image
Migrate git-init image off PipelineResourceResult
[TEP074] Tombstone ResourceResult field with the removal of PipelineResources
The text was updated successfully, but these errors were encountered: