Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pacificera opened this issue Oct 1, 2020 · 1 comment

Comments

@pacificera
Copy link

  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

  1. Followed instructions in readme.

  2. 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
Copy link
Author

Note that I got same result with python resource definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant