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

Is it possible to bind a workspace from within a Pipeline (not a PipelineRun) or create a PipelineRun with bound workspaces using GUI? #5635

Closed
kamieniarzk opened this issue Oct 12, 2022 · 4 comments

Comments

@kamieniarzk
Copy link

First of all, pardon me if it's not the right place for such questions but I've struggled to find the answer in the documentation and did not find any other community forums related to tekton.

I'd like to be able to start my pipeline which uses two workspaces using the Tekton dashboard (GUI) but from what I can see, there is no option to provide workspaces here.

enter image description here

The only two options of creating a PipelineRun with bound workspaces I can think of are to either:

  • Create it programmatically and apply using either kubectl or tekton-cli
  • Create a TriggerTemplate with bound workspaces and run the pipeline by a webhook to an EventListener

My main problem is both of those options require the developer to go through a very non-user-friendly process. Ideally, I'd like to run the pipelines with bound workspaces from tekton GUI. Can this be somehow achieved?
I've tried providing the binding in the workspaces section of the Pipeline definition as below:

  workspaces:
    - name: source-dir
      persistentVolumeClaim:
        claimName: gradle-cache-pvc
    - name: ssh-creds
      secret:
        secretName: ssh-key-secret

But I got an error saying persistentVolumeClaim field is not allowed.

@dibyom
Copy link
Member

dibyom commented Oct 13, 2022

/cc @tektoncd/dashboard-maintainers may be able to answer this

@AlanGreene
Copy link
Member

AlanGreene commented Oct 13, 2022

It's not supported in the Dashboard yet but is being tracked in tektoncd/dashboard#1283 and there's some work in progress (first draft of PR open) to add the ability to configure workspaces when creating a PipelineRun.

@AlanGreene
Copy link
Member

/close

@tekton-robot
Copy link
Collaborator

@AlanGreene: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Repository owner moved this from Todo to Done in Tekton Community Roadmap Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants