When cancel taskRun, the pipelineRun state should be Cancelled, not Failed. #1900
Labels
area/api
Indicates an issue or PR that deals with the API.
kind/feature
Categorizes issue or PR as related to a new feature.
Expected Behavior
When I change the state of a taskRun to TaskRunCancelled, the state of pipelineRun should be PipelineRunCancelled. And the state of taskRun and pipelineRun will be consistent.
Actual Behavior
Now if I change the taskRun to Cancelled, the pipelineRun state will be changed to Failure.
In
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go
, there'sIsDone
,isFailure
,isSuccessfully
,isSkipped
functions to check and calculate the state of pipelineRun, but there's no something likeisCancelled
function.Steps to Reproduce the Problem
Additional Info
The text was updated successfully, but these errors were encountered: