Closed vdemeester closed 2 months ago
tkn version is 0.38, pipeline version is 0.61.x (so, relatively recent). This would also happen with the older LTS, such as 0.59.x, …
tkn
pipeline
tkn start working and starting the task.
tkn start
tkn start fails with the following.
Error: admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "artifacts"
Task
This boils down to the definition in pipeline, see https://github.com/tektoncd/pipeline/blob/main/pkg/apis/pipeline/v1/taskrun_types.go#L300L303. When it gets created by tkn, it most likely is an empty arrays instead of being nil, and… it is not recognized on older version of tektoncd/pipeline.
nil
tektoncd/pipeline
This could be a "backward" incompatibility from tektoncd/pipeline. cc @tektoncd/cli-maintainers @tektoncd/core-maintainers
tkn
version is 0.38,pipeline
version is 0.61.x (so, relatively recent). This would also happen with the older LTS, such as 0.59.x, …Expected Behavior
tkn start
working and starting the task.Actual Behavior
tkn start
fails with the following.Steps to Reproduce the Problem
tkn
0.38Task
tkn start
…Additional Info
This boils down to the definition in
pipeline
, see https://github.com/tektoncd/pipeline/blob/main/pkg/apis/pipeline/v1/taskrun_types.go#L300L303. When it gets created bytkn
, it most likely is an empty arrays instead of beingnil
, and… it is not recognized on older version oftektoncd/pipeline
.This could be a "backward" incompatibility from
tektoncd/pipeline
. cc @tektoncd/cli-maintainers @tektoncd/core-maintainers