Skip to content

Support a workspace named source for custom tasks #26

Open
@SaschaSchwarze0

Description

@SaschaSchwarze0

Custom tasks in Tekton allow to specify workspaces. We should allow to pass a workspace with the name source and reject all other workspaces.

The source workspace should be passed to the BuildRun and from there to the Tekton TaskRun that implements the BuildRun. And here it becomes interesting as we will need an extension in Shipwright Build. To be designed, but two options:

  • generic volume support for the source, not my favorite
  • we introduce a source type PipelineWorkspace. In this case, Shipwright will look at the Run/CustomRun which owns the BuildRun. There it should find the workspace named source. And then it will need to look in the owner again which is the PipelineRun to determine what backs the workspace. And then we use this. Interesting will be how we support the affinity assistant capability of Tekton which will be needed if the user uses a PVC which is backed by a hostpath.

Tekton docs: https://tekton.dev/docs/pipelines/customruns/#specifying-workspaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions