build
build copied to clipboard
Reason "CoundNotGetTask" Provided if TaskRun Creation Fails
Bug Report
Description
If the TaskRun
for the associated BuildRun
cannot be created, the listed failure reason is CouldntGetTask
. This failure reason is misleading if the underlying TaskRun
can't be created in the first place. This can happen, for instance, if the referenced build strategy requires additional security capabilities that are not granted to the user or service account for the build.
Expected Behavior
The failure reason more readily identifies the cause, in this case CreateTaskRunFailed
Actual Behavior
Reason provided is CouldntGetTask
, which can be confusing since Shipwright does not create Tekton Tasks.
/kind bug
Notes
This issue was filed a long time ago. Help is needed to verify if this is an issue running Shipwright build on top of Tekton Pipelines v0.47.x