RedHatQuickCourses / rhods-pipelines

Automation using Data Science Pipelines
https://redhatquickcourses.github.io/rhods-pipelines/
2 stars 6 forks source link

Error creating pipeline: Create pipeline failed: Invalid input error: Unsupported argo version. Expected: tekton.dev/v1beta1. Received: tekton.dev/v1 #23

Closed adelton closed 5 months ago

adelton commented 5 months ago

Following https://redhatquickcourses.github.io/rhods-pipelines/rhods-pipelines/1.33/chapter1/kfp.html, when I build the coin-toss.yaml with python3 coin-toss.py in a launcher terminal of an OpenShift AI 2.8.0's fraud-detection-workbench workbench created in https://redhatquickcourses.github.io/rhods-pipelines/rhods-pipelines/1.33/chapter1/elyra-pipelines.html, the produced YAML start with

(app-root) (app-root) head coin-toss.yaml 
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
  name: conditional-execution-pipeline
  annotations:
    tekton.dev/output_artifacts: '{"flip-coin": [{"key": "artifacts/$PIPELINERUN/flip-coin/Output.tgz",

When I then import that YAML as a coin-toss-pipeline, I get

Danger alert:Error creating pipeline Error creating pipeline: Create pipeline failed: Invalid input error: Unsupported argo version. Expected: tekton.dev/v1beta1. Received: tekton.dev/v1

Screenshot_2024-04-04_15-55-59

rsriniva commented 5 months ago

@adelton - I fixed this. will submit PR and close this soon. Thank you for reporting this. The fix is to downgrade the version of kfp-tekton to 1.5.X. The coin toss example works for me now. will push to main soon...

rsriniva commented 5 months ago

fixed in #26