cli: Error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1)
Versions and Operating System
-
Kubernetes version:
Output of
kubectl version:
# kubectl get nodes
NAME STATUS ROLES AGE VERSION
rancher02 Ready controlplane,etcd 31d v1.24.6
rancher03 Ready worker 31d v1.24.6
rancher04 Ready worker 31d v1.24.6
rancher05 Ready worker 31d v1.24.6
- Tekton Pipeline version:
# tkn version
Client version: 0.28.0
Pipeline version: v0.43.0
Dashboard version: v0.31.0
- Operating System:
# cat /etc/os-release
NAME="SLES"
VERSION="15-SP4"
VERSION_ID="15.4"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP4"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp4"
DOCUMENTATION_URL="https://documentation.suse.com/"
Error Info
# tkn task start --showlog workspace-demo -p target="SUSE" -w name=messages,emptyDir=""
Error: the API version in the data (tekton.dev/v1beta1) does not match the expected API version (tekton.dev/v1)
# kubectl api-versions | grep tekton
resolution.tekton.dev/v1alpha1
resolution.tekton.dev/v1beta1
tekton.dev/v1
tekton.dev/v1alpha1
tekton.dev/v1beta1
# kubectl api-resources --api-group=tekton.dev
NAME SHORTNAMES APIVERSION NAMESPACED KIND
clustertasks tekton.dev/v1beta1 false ClusterTask
customruns tekton.dev/v1beta1 true CustomRun
pipelineresources tekton.dev/v1alpha1 true PipelineResource
pipelineruns pr,prs tekton.dev/v1 true PipelineRun
pipelines tekton.dev/v1 true Pipeline
runs tekton.dev/v1alpha1 true Run
taskruns tr,trs tekton.dev/v1 true TaskRun
tasks tekton.dev/v1 true Task
verificationpolicies tekton.dev/v1alpha1 true VerificationPolicy
Pipeline
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: workspace-demo
spec:
params:
- name: target
type: string
default: MageEdu
steps:
- name: write-message
image: alpine:3.16
script: |
#!/bin/sh
set -xe
if [ "$(workspaces.messages.bound)" == "true" ] ; then
echo "Hello $(params.target)" > $(workspaces.messages.path)/message
cat $(workspaces.messages.path)/message
fi
echo "Mount Path: $(workspaces.messages.path)"
echo "Volume Name: $(workspaces.messages.volume)"
workspaces:
- name: messages
description: |
The folder where we write the message to. If no workspace
is provided then the message will not be written.
optional: true
mountPath: /data
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 19 (12 by maintainers)
Commits related to this issue
- Use version from object for create This commit fixes #1837. After tekton pipeline introduced v1, clients.Tekton.Discovery() will return v1 and this is not the same with current cli start command for ... — committed to Yongxuanzhang/cli by Yongxuanzhang a year ago
- Use version from object for create This commit fixes #1837. After tekton pipeline introduced v1, clients.Tekton.Discovery() will return v1 and this is not the same with current cli start command for ... — committed to Yongxuanzhang/cli by Yongxuanzhang a year ago
- Use version from object for create This commit fixes #1837. After tekton pipeline introduced v1, clients.Tekton.Discovery() will return v1 and this is not the same with current cli start command for ... — committed to Yongxuanzhang/cli by Yongxuanzhang a year ago
Fixed in
Available in v0.30.0 release
cc @piyush-garg Itβs being fixed, but not released yet π
Ran into this while releasing pipelines
0.46.0π