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

Introducing ApprovalTask ​​in pipeline, the pipeline cannot find the task #169

Open
zijiwork opened this issue Jun 22, 2024 · 2 comments

Comments

@zijiwork
Copy link

Introducing ApprovalTask ​​in pipeline, the pipeline cannot find the task

Pipeline cicd/flask-demo-dev-flow can't be Run; it contains Tasks that don't exist: Couldn't retrieve Task "approval": tasks.tekton.dev "approval" not found

k8s version: v1.26.15
tekton version v0.40.0

  - name: wait
    taskRef:
      apiVersion: openshift-pipelines.org/v1alpha1
      kind: ApprovalTask
      name: approval
    params:
      - name: approvers
        value:
          - foo
          - bar
          - tekton
      - name: numberOfApprovalsRequired
        value: 2
      - name: description
        value: Approval Task Rocks!!!
@PuneetPunamiya
Copy link
Collaborator

You need to use Tekton Pipelines v0.43.0 and onwards versions to get this working
Because once you refer an approval Task in the pipeline, then when it reaches approvalTask it creates a customRun and support for that is added in v0.43.0 https://github.com/tektoncd/pipeline/releases/tag/v0.43.0

@PuneetPunamiya
Copy link
Collaborator

And regarding Kubernetes version, it will work fine with 1.26 but if you want to use the cli then in that case you'll have to use k8s 1.28 and onwards

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

2 participants