Commit 3625cbe
committed
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>
refactor and e2e tests
fix image scanning1 parent 572e9a5 commit 3625cbe
File tree
15 files changed
+1621
-155
lines changed- .github/workflows
- pkg
- config
- reconciler/buildrun
- resources
- test
- e2e/v1beta1
- integration
- utils/v1beta1
- v1beta1_samples
15 files changed
+1621
-155
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
242 | 271 | | |
243 | 272 | | |
244 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| |||
361 | 364 | | |
362 | 365 | | |
363 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
364 | 372 | | |
365 | 373 | | |
366 | 374 | | |
| |||
Large diffs are not rendered by default.
0 commit comments