citrusframework / yaks

YAKS is a platform to enable Cloud Native BDD testing on Kubernetes
Apache License 2.0
82 stars 28 forks source link

How to get the YAKS Operator to mount a volume for my test pod? #405

Open gerrym7 opened 2 years ago

gerrym7 commented 2 years ago

The app under test is a typical Spring-boot/Camel microservice, but its processing is kicked off by having a file placed on a specific volume. So my feature needs to write a file to this volume. I tried the camel-jcifs component and figured I could use Samba instead in an included little Camel route in my Feature file, but unfortunately this component only works with Camel 2.x

Mounting this volume would allow my route in the Feature file to use the regular Camel File component instead. If I can't do that, my last ditch hack would be to deploy another microservice with the volume mounted that accepts a rest request from my Test pod to write the file for it. I'd rather avoid doing that if at all possible.

christophd commented 2 years ago

Mounting a custom volume is not possible at the moment. I think it is a reasonable feature request.

I am afraid you need to fallback to the mentioned hack in the meantime.