Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to to tkn start with recent tkn release and old(er) pipeline version #2388

Closed
vdemeester opened this issue Aug 26, 2024 · 0 comments · Fixed by #2392
Closed

Failing to to tkn start with recent tkn release and old(er) pipeline version #2388

vdemeester opened this issue Aug 26, 2024 · 0 comments · Fixed by #2392
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@vdemeester
Copy link
Member

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.

Error: admission webhook "webhook.pipeline.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "artifacts"

Steps to Reproduce the Problem

  1. Install pipelnie v0.61.x or older and tkn 0.38
  2. Define a Task
  3. Do a 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 by tkn, it most likely is an empty arrays instead of being nil, and… it is not recognized on older version of tektoncd/pipeline.

This could be a "backward" incompatibility from tektoncd/pipeline.
cc @tektoncd/cli-maintainers @tektoncd/core-maintainers

@vdemeester vdemeester added the kind/bug Categorizes issue or PR as related to a bug. label Aug 26, 2024
@tektoncd tektoncd deleted a comment Aug 26, 2024
piyush-garg added a commit to piyush-garg/cli that referenced this issue Sep 3, 2024
This will bump tektoncd/pipeline to v0.62.3 to make
client compatible with old pipeline versions

Fix tektoncd#2388
vinamra28 pushed a commit that referenced this issue Sep 10, 2024
This will bump tektoncd/pipeline to v0.62.3 to make
client compatible with old pipeline versions

Fix #2388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant