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
Taskrun is not getting cancelled and showing the below error message Error: failed to cancel taskrun "build-and-deploy-run-mz5xs-build-image-pqc9b": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "pipelineResourceBinding"
Steps to Reproduce the Problem
Create a task
Start the taskrun and wait till taskrun status changes from Running(Pending) to Running
Try to cancel the taskrun with command tkn taskrun cancel
Additional Info
Below are the command logs
$ tkn tr ls
NAME STARTED DURATION STATUS
python-script-task-run-wh8v8 16 seconds ago --- Running
$ tkn tr cancel python-script-task-run-wh8v8
Error: failed to cancel taskrun "python-script-task-run-wh8v8": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "containerState"
$ tkn tr ls
NAME STARTED DURATION STATUS
python-script-task-run-wh8v8 1 minute ago --- Running
The text was updated successfully, but these errors were encountered:
fix#876
to cancel a taskrun earlier cli was updating the taskrun
update with dynamic clinet sometimes failed while marshelling
the current fix use patch instead of update
fix linting issue in pipeline start command
Signed-off-by: Pradeep Kumar <[email protected]>
Version and Operating System
tkn Version:
latest dev
Operating System:
Linux
Expected Behavior
Taskrun should get cancelled
Actual Behavior
Taskrun is not getting cancelled and showing the below error message
Error: failed to cancel taskrun "build-and-deploy-run-mz5xs-build-image-pqc9b": admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "pipelineResourceBinding"
Steps to Reproduce the Problem
Running(Pending)
toRunning
tkn taskrun cancel
Additional Info
Below are the command logs
The text was updated successfully, but these errors were encountered: