Skip to content

Add ImageVolumeSource as a supported workspace binding type #10592

Description

@bennyz

Feature request

Add corev1.ImageVolumeSource as a supported volume source type in WorkspaceBinding, alongside the existing PVC, EmptyDir, ConfigMap, Secret, Projected, and CSI types.

This would allow users to mount container image filesystems as read-only workspace volumes in TaskRuns and PipelineRuns:

Use case

Kubernetes Image Volumes (ImageVolumeSource) allow mounting a container image's filesystem as a volume without running it as a container. This is useful for distributing tools, rpm cache, etc.

  workspaces:
    - name: my-tools
      image:
        reference: quay.io/example/my-tools:latest
        pullPolicy: IfNotPresent

Currently, the only way to use image volumes with Tekton is through PodTemplate.Volumes

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Projects

    Status
    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions