openshift / pipelines-tutorial

A step-by-step tutorial showing OpenShift Pipelines
Apache License 2.0
297 stars 617 forks source link

getting an error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1) #166

Open barrybrianbarrios opened 1 year ago

barrybrianbarrios commented 1 year ago

tkn pipeline start build-and-deploy -w name=shared-workspace,volumeClaimTemplateFile=03_persistent_volume_claim.yaml -p deployment-name=pipelines-vote-api -p git-url=https://github.com/openshift/pipelines-vote-api.git -p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-api --use-param-defaults Error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1)

gforster commented 1 year ago

Had the same issue. Just needed to update tkn, the tekton cli package.

alfred4ibm commented 1 year ago

same here update from tkn 0.21 to 0.31 solve my issue (macOS) : https://github.com/tektoncd/cli/releases

rbaumgar commented 11 months ago

see https://github.com/openshift/pipelines-tutorial/pull/168

openshift-bot commented 8 months ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

rbaumgar commented 8 months ago

/remove-lifecycle stale

openshift-bot commented 5 months ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

rbaumgar commented 5 months ago

/remove-lifecycle stale

piyush-garg commented 5 months ago

We can help on this if you can provide some details with respect to tkn version, pipeline version etc.

This should not happen if you upgrade to latest version of tkn. Ideally this is happening if you are using old tkn with new pipeline version

rbaumgar commented 5 months ago

In the meantime, tekton objects are version v1 and are no longer v1beta. So an update would be useful.

openshift-bot commented 2 months ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

rbaumgar commented 2 months ago

/remove-lifecycle stale