tektoncd / website

Tekton Website
https://tekton.dev
Apache License 2.0
62 stars 149 forks source link

Clone a git repository with Tekton #542

Closed pulpo closed 9 months ago

pulpo commented 1 year ago

The documentation for the latest version use a task from the hub, git-clone, that has an outdated API version, giving the following error:

❯ tkn hub install task git-clone
Error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1)

A quick fix for this is to download the task with tnk hub get task git-clone > git-clone.yaml and replace v1beta1 with v1.

AlanGreene commented 1 year ago

Thanks for raising this @pulpo. What version of the Tekton CLI are you using? There was an issue for a while where it did not properly handle the v1 APIs although tkn v0.30 introduced a number of fixes in this area.

I just tested on the latest version and was successfully able to run the command.

$ tkn version
Client version: 0.30.1
Pipeline version: v0.47.0
Triggers version: v0.23.1
Dashboard version: v0.35.0

$ tkn hub install task git-clone
Task git-clone(0.9) installed in test namespace
tekton-robot commented 11 months ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale with a justification. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

tekton-robot commented 10 months ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten with a justification. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

tekton-robot commented 9 months ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen with a justification. Mark the issue as fresh with /remove-lifecycle rotten with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

tekton-robot commented 9 months ago

@tekton-robot: Closing this issue.

In response to [this](https://github.com/tektoncd/website/issues/542#issuecomment-1732584153): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen` with a justification. >Mark the issue as fresh with `/remove-lifecycle rotten` with a justification. >If this issue should be exempted, mark the issue as frozen with `/lifecycle frozen` with a justification. > >/close > >Send feedback to [tektoncd/plumbing](https://github.com/tektoncd/plumbing). Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.