-
Notifications
You must be signed in to change notification settings - Fork 266
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
Ability to bind Workspaces #1283
Comments
I agree it would be nice to be able to manually create runs using workspaces. We're currently working on introducing the ability to manually create a TaskRun, similar to the existing functionality for PipelineRuns. As part of this we're likely to revisit some of the PipelineRun pieces. Some initial thoughts for anyone interested in picking this up... Adding support for workspaces would require:
Reference:
|
It seems a little silly that workspace definitions happen on the PipelineRun/TaskRun resource given how they are used. Basically, you'd have to specify one-to-many workspaces, per run, and hope that the end-user is able to map the bindings correctly when a new run is issued. It's not a very good experience. It also doesn't look like there's a reliable way to determine the workspace specifications/requirements by simply reading the pipeline/task definitions, which makes it even harder. Seems like there needs to be another level of abstraction that holds the configuration/binding definitions so they can be re-used across runs. |
Depending on your specific use cases, if you're looking for a way to template the creation of runs you may be interested in Tekton Triggers.
Changes to how Pipelines / Tasks are defined would need to raised against the core Tekton Pipelines and likely raised for discussion at the weekly working group meeting. Since Pipelines and Tasks are intended to be reusable, configuration such as workspaces, service accounts, resources, etc. are considered |
I actually opened up a related issue shortly after I opened up this one. Thank you! |
Here's a link to the related issue: tektoncd/pipeline#2372 |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
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. |
/remove-lifecycle stale |
@AlanGreene: Reopened this issue. In response to this:
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. |
/assign @ziheng |
@AlanGreene: GitHub didn't allow me to assign the following users: ziheng. Note that only tektoncd members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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. |
Moving the Create TaskRun UI to a full-page experience as we've already done for Create PipelineResource and Create Secret should be happening very soon: #966 Once this is done we'll have more space to work with and may make some further layout changes to the existing Create PipelineRun / TaskRun UI. These would allow us to provide a cleaner and more user friendly experience, especially as we start adding more functionality, e.g. #1722 |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
This is still something we want to add, freezing so it doesn't get automatically closed. /lifecycle frozen |
Any update for this issue? Really looking forward to this feature. Without specifying workspace, it looks the manually kicking off PipelineRun or TaskRun feature is not really useful in many cases. |
I am also curious, would be extremely helpful to trigger pipelines from the dashboard |
Hi,
Basic SolutionPVC, ConfigMap, Secrets,
subPathMore complexVolumeClaimTemplate, projected (alpha), csi (alpha) not analyzed |
Yes we would need to either apply a filter to the Secret endpoints to return only the basic metadata, provide a custom endpoint specifically for this purpose (and block the default endpoint), or provide free-text input for the Secret name in the UI instead of providing a dropdown list from which the user would select. |
In my pipeline, different tasks use different workspaces and serviceaccounts, so hopefully UI will be able to support it as well. apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: my-pipelinerun-
namespace: tekton-run
spec:
taskRunSpecs:
- pipelineTaskName: fetch-ops-git
taskServiceAccountName: sa-gitlab-clone
- pipelineTaskName: fetch-app-git
taskServiceAccountName: sa-gitlab-clone
- pipelineTaskName: azure-git-action
taskServiceAccountName: sa-azure-git-action
pipelineRef:
name: php-pipeline-pre
workspaces:
- name: git-clone-workspace
persistentVolumeClaim:
claimName: pvc-tekton
subPath: pvc-$(uid)
- name: image-secret-workspace
secret:
secretName: swr-image-secret
- name: azure-git-action-workspace
emptyDir: {} |
With new YAML mode any user-specific cases are supported now, and we may continue discussion. @AlanGreene, I agree that secrets should not be allowed to read by dashboard UI for those who are concerned with security and we can support both options:
|
/area roadmap |
Been looking forward to this feature for a long time |
YAML mode, no problem for SRE, but compared to ordinary R&D personnel, the threshold is a bit high, they just want to perform simple operations through the dashboard. @AlanGreene |
+1 from user perspective. This would be an import issue to use dashboard as frontend workflow while the workspace is the very first primitive for pipeline. |
+1 here. The issue seems to exists for a long time but no possible solution seems to be addressed. Currently running pipeline from UI always encounter error due to lacking of workspace. YAML mode can be an alternative but not user-friendly and require much overhead |
It would be really nice to be able to configure a workspace prior to creating a PipelineRun within the dashboard.
I understand that triggers can be used to do this automatically through events, but for folks who want to manually kick something off through the dashboard, this would be pretty useful.
The text was updated successfully, but these errors were encountered: