You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add PipelineRun support to BuildRun reconciler
This commit introduces PipelineRun support to the BuildRun
reconciler, enabling Shipwright to use Tekton PipelineRuns as an alternative
to TaskRuns for build execution.
Key changes:
- Add pipelinerun_runner.go with TektonPipelineRunWrapper implementation
that wraps Tekton PipelineRuns and injects TaskRun specs into PipelineRun
structures.
- Implement ImageBuildRunner and ImageBuildRunnerFactory interfaces for
PipelineRun support.
- Add reconciliation logic for PipelineRun status updates, including
condition handling and failure detection
- Add UpdateBuildRunUsingPipelineRunCondition function to update BuildRun
status based on PipelineRun conditions (timeout, cancellation, success,
failure)
- Refactor volume checking to use GetUnderlyingTaskRun() method for both
TaskRun and PipelineRun executors, eliminating the need for separate
volume checking methods
- Add RunnerFactories map to support configurable executor selection
between TaskRun and PipelineRun implementations
- Update error handling in CreateImageBuildRunner
- Add UpdateImageBuildRunFromExecutor to handle updating Buildrun based on
used executor (pipelinerun or taskrun)
The implementation maintains backward compatibility.
Signed-off-by: Hasan Awad <hasan.m.awad94@gmail.com>
Copy file name to clipboardExpand all lines: deploy/200-role.yaml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,10 @@ rules:
67
67
# With the OwnerReferencesPermissionEnforcement admission controller enabled, controllers need the "delete" permission on objects that they set owner references on.
0 commit comments