build
build copied to clipboard
Use volumes as build source
/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.
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.