Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Use volumes as build source #505

Open
nicolaferraro opened this issue Dec 18, 2018 · 1 comment
Open

Use volumes as build source #505

nicolaferraro opened this issue Dec 18, 2018 · 1 comment
Labels

Comments

@nicolaferraro
Copy link

/kind feature
/kind question
/area API

I'd like to start a build from a set of files on a Kubernetes volume, but I see there's no oob support for that. It's possible to start a build from a Container, but containers don't allow to specify volumes to mount (only mount points for volumes declared in the pod).

Is this a valid addition for Knative build?

I have a use case that needs a feature like this. I'm trying to fully integrate Camel K in Knative and I need a staging area where to deliver files to a build.

@imjasonh
Copy link
Member

If you already have source in a volume on the cluster, it should already be possible to mount that volume into your steps, to somewhere other than /workspace, and build from there.

If that doesn't work for some reason it might be a bug (I've never tried it). It probably makes sense to have a VolumeResource which can be specified and reused across a Pipeline.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants