Skip to content
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

ClusterTasks are being ignored #64

Open
somatorio opened this issue Jul 22, 2021 · 2 comments
Open

ClusterTasks are being ignored #64

somatorio opened this issue Jul 22, 2021 · 2 comments

Comments

@somatorio
Copy link

As you can see below we have a ClusterTask being used at our pipelines and tekton-lint shows it's reference as missing, but it is defined

/workdir # tekton-lint tasks/* pipelines/pipeline.yml  --quiet
pipelines/pipeline-confluence-docs-default.yml:
error   (38,15,38,28): Pipeline 'docs-default' references task 'webhook-debug' but the referenced task cannot be found. To fix this, include all the task definitions to the lint task for this pipeline.


/workdir # head -n5 tasks/cluster-task-webhook-debug.yml 
---
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
  name: webhook-debug

/workdir # grep 'webhook-debug' -C1 pipelines/pipeline-docs.yml 
      taskRef:
        name: webhook-debug
        kind: ClusterTask
@rofrano
Copy link
Member

rofrano commented Apr 29, 2024

Same here. I just ran tekton-lint on my .tekton folder are received these false errors:

.tekton/pipeline.yaml
   64:15  error    Pipeline 'cd-pipeline' references task 'git-clone' but the referenced task cannot be found. To fix this, include all the task definitions to the lint task for this pipeline  no-missing-resource
  132:15  error    Pipeline 'cd-pipeline' references task 'buildah' but the referenced task cannot be found. To fix this, include all the task definitions to the lint task for this pipeline    no-missing-resource

Both git-clone and buildah are ClusterTasks and they are marked as such in the pipeline.yaml file which means they are installed in the cluster so you shouldn't find them in my yaml files.

For example the pipeline.yaml contains this:

    - name: buildah
      taskRef:
        name: buildah
        kind: ClusterTask

Which clearly indicates that the buildah Task is already installed in the cluster and should not generate an error.

@mbwhite
Copy link
Collaborator

mbwhite commented May 24, 2024

Resolved by #114

thanks @somatorio @rofrano

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

3 participants