redhat-developer-demos / openshift-pipelines-workshop

Workshop to demonstrate OpenShift Pipelines (featuring Tekton)
Apache License 2.0
7 stars 16 forks source link

invalid input resources: TaskRun's declared resources didn't match usage in Task: [source] #1

Open pacificera opened 3 years ago

pacificera commented 3 years ago
  1. Pulled this commit:

    
    Author: Don Schenck <don.schenck@gmail.com>
    Date:   Mon Sep 28 13:25:11 2020 -0400
    
    Trigger stuff all bundled up and ready to go

commit bfc5107f2d63ee56c56cd49d2cee3e329801d366 Author: Don Schenck don.schenck@gmail.com Date: Fri Sep 25 14:18:13 2020 -0400

2. Followed instructions in readme.

3. Get `invalid input resources: TaskRun's declared resources didn't match usage in Task: [source]`

Log is below:

david@pop-os:~/src/openshift-pipelines-workshop$ oc new-project pipelines-tutorial Already on project "pipelines-tutorial" on server "https://api.crc.testing:6443".

You can add applications to this project with the 'new-app' command. For example, try:

oc new-app ruby~https://github.com/sclorg/ruby-ex.git

to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application:

kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node

david@pop-os:~/src/openshift-pipelines-workshop$ oc create -f qotd-pipeline.yaml pipeline.tekton.dev/qotd-build-and-deploy created david@pop-os:~/src/openshift-pipelines-workshop$ oc create -f apply_manifest_task.yaml task.tekton.dev/apply-manifests created david@pop-os:~/src/openshift-pipelines-workshop$ oc create -f qotd-git-go-resource.yaml pipelineresource.tekton.dev/qotd-git created david@pop-os:~/src/openshift-pipelines-workshop$ oc create -f qotd-image-pipelineresource.yaml pipelineresource.tekton.dev/qotd-image created david@pop-os:~/src/openshift-pipelines-workshop$ tkn resource ls NAME TYPE DETAILS qotd-git git url: https://github.com/redhat-developer-demos/qotd.git qotd-image image url: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/qotd:latest david@pop-os:~/src/openshift-pipelines-workshop$ tkn pipeline start qotd-build-and-deploy ? Choose the git resource to use for qotd-git: [Use arrows to move, type to fil? Choose the git resource to use for qotd-git: qotd-git (https://github.com/redhat-developer-demos/qotd.git) ? Choose the image resource to use for qotd-image: [Use arrows to move, type to filter] ? Choose the image resource to use for qotd-image: qotd-image (image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/qotd:latest) PipelineRun started: qotd-build-and-deploy-run-vkz7t

In order to track the PipelineRun progress run: tkn pipelinerun logs qotd-build-and-deploy-run-vkz7t -f -n pipelines-tutorial david@pop-os:~/src/openshift-pipelines-workshop$ tkn pipelinerun logs qotd-build-and-deploy-run-vkz7t -f -n pipelines-tutorial invalid input resources: TaskRun's declared resources didn't match usage in Task: [source] david@pop-os:~/src/openshift-pipelines-workshop$

pacificera commented 3 years ago

Note that I got same result with python resource definition.