-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Handle dag in pipelineresoultion
In the pipelinerun controller, today we follow this logic: - build the dag from the spec, using the dag module - resolve the pipelinerun state using the spec and status, using the resources module - get a list of candidate next tasks from the dag module, passing part of the state - get a list of next tasks from the resources module, using the list of candidates and the pipeline run status The separation of concerns between the dag, resources and reconciler modules feels a bit mixed up. This is just a PoC that resolves part of the issue, by moving the invocation of the dag building as well as obtaining the list of candidates to the dag module, and aggregating the dag to the pipeline state struct. I did not update tests yet, this is for discussion purposes.
- Loading branch information
Showing
2 changed files
with
41 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters