-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make emptyDir the default volume source for workspaces in TaskRun #2398
Comments
/kind feature |
Thanks for writing this up! Two thoughts on this:
|
I understand your thoughts. But in the case of workspace volume for a Here I am assuming that a workspace is most commonly used for passing files used within a run, not when it is pre-populated with files (e.g. dependency cache). Many solutions uses buckets for that use case. The case for
This is interesting. I think it is a different question - but may be related. But couldn't the task handle I wanted to open a new issue to support projected volume anyway, for another case. I think it makes most sense to have it for a specific task: I want to have support for |
Yeah, I completely agree with you about the common case. In isolation I think this would make absolute sense to be the default. To expand further on the reasons I have against the convention:
I agree that it's a different question and, having thought about it some more, I actually think having a default would be entirely complimentary to optional workspaces.
Projected Volumes and Secrets get mounted as read-only. So a git Task that asks for a single Secret to mount into Looking forward to your Projected Volumes proposal, I definitely think their inclusion makes sense. I hadn't considered the deploying-to-other-clusters scenario wrt token projection. Good stuff! |
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. Partially fixes tektoncd#2398
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Partially fixes tektoncd#2398
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Partially fixes tektoncd#2398
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Partially fixes tektoncd#2398
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes #2398 and partially fixes #2595.
Currently, users have to completely specify `Workspaces` they don't care about or whose configuration should be entirely in the hands of admins. This PR enables users to specify default `Workspaces` for `TaskRuns`, for example they can use `emptyDir` by default. The `WorkspaceBinding` can be set in the `config-defaults` ConfigMap in `default-task-run-workspace-binding`. Fixes tektoncd#2398 and partially fixes tektoncd#2595.
In the case when we have a
Task
with a workspace, e.g.Expected Behavior
That Tekton could provide me with good default values when possible and the convention is a good fit for the problem.
When I create a
TaskRun
without defining a workspace volume, I can get a working solution by convention.Example (YAML) but use case is useful for e.g. cli as well:
And the TaskRun should successfully run.
Actual Behavior
A volume for the workspace must be specified.
A user can solve it by adding
emptyDir{}
for the workspace in theTaskRun
Example:
Proposed solution
For a
TaskRun
anemptyDir{}
is almost always possbile to use in most clusters (as what I know) and it is a fair use case, if the workspace is used for passing files between stepsHowever, for
PipelineRun
anemptyDir{}
is less useful as a workspace since it is combined of multiple pods.Providing an
emptyDir{}
volume as default was suggested in the discussion about "Auto workspace"When e.g. debugging a task in an existing pipeline, this is a useful, quick way to run a task.
The text was updated successfully, but these errors were encountered: