openshift / pipelines-tutorial

A step-by-step tutorial showing OpenShift Pipelines
Apache License 2.0
298 stars 621 forks source link

json: unknown field "volumeClaimTemplate" #108

Closed fleason closed 3 years ago

fleason commented 3 years ago

Following the demo on IBM Cloud ROKS. Not sure where to go. Are there logs that could provide more detail?

[f*****@localhost ~]$ tkn pipeline start build-and-deploy \ -w name=shared-workspace,volumeClaimTemplateFile=https://raw.githubusercontent.com/openshift/pipelines-tutorial/master/01_pipeline/03_persistent_volume_claim.yaml \ -p deployment-name=vote-api \ -p git-url=http://github.com/openshift-pipelines/vote-api.git \ -p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-api \

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

OpenShift version 4.4.20

tkn version Client version: 0.11.0 Pipeline version: v0.11.3 Triggers version: v0.4.0

oc version Client Version: 4.5.0-202005291417-9933eb9 Server Version: 4.4.20 Kubernetes Version: v1.17.1+6af3663

fleason commented 3 years ago

I changed the oc client version. Same problem.

[f****@localhost ~]$ oc version
Client Version: 4.4.0-202005290638-1960dd7
Server Version: 4.4.20
Kubernetes Version: v1.17.1+6af3663
ppitonak commented 3 years ago

Hi, volumeClaimTemplate is a feature introduced in Pipelines 1.1 (Tekton 0.14.3). Since you have older version of Pipelines, follow the instruction on this branch https://github.com/openshift/pipelines-tutorial/tree/release-tech-preview-1

fleason commented 3 years ago

Hi, volumeClaimTemplate is a feature introduced in Pipelines 1.1 (Tekton 0.14.3). Since you have older version of Pipelines, follow the instruction on this branch https://github.com/openshift/pipelines-tutorial/tree/release-tech-preview-1

Issue resolved. Thanks.

fleason commented 3 years ago

@ppitonak advice resolved problem.