-
Notifications
You must be signed in to change notification settings - Fork 265
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
Clean up PipelineRun component and TaskRun container code #885
Comments
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. 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. |
/remove-lifecycle stale |
@AlanGreene: Reopened this issue. 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. |
|
PR #1814 starts to address these issues, and subsequent changes should be a lot simpler as a result.
|
While working on PR #878, I noticed a few things about the PipelineRun component and TaskRun container code that could be cleaned up/simplified.
stepsStatus()
function has an unnecessary second parametertaskRunStepsStatus
. The TaskRun'sstatus.steps
already has the status information for each step, so there shouldn't be a second list of statuses passed to the function. This second parameter is also mutated and returned as thestepStatus
. ThestepStatus
should be removed, because it is redundant sincestep
already has everything instepStatus
. This refactoring will have slight a snowball effect, because thestepStatus
is used in other components.pipelineTaskName
should be renamed, because it is a property only found in PipelineRuns, but it is used in components that display TaskRuns. Since the TaskRuns do not have apipelineTaskName
, the property doesn’t make sense in those components.Additional Info
These are just some things I noticed, but there might be more to clean up/simplify.
The text was updated successfully, but these errors were encountered: