hera icon indicating copy to clipboard operation
hera copied to clipboard

Unable to add volume/secret globally

Open bvidovic1 opened this issue 1 year ago • 2 comments

Based on examples and source I was not able to find how to add emptyDir volume globally, so it is available for all tasks in the workflow. The same goes for the SecretVolume.

I was expecting I could add Resources under Workflow definition, but that is not the case. Is there some solution to this or is it missing func?

bvidovic1 avatar Jul 22 '22 11:07 bvidovic1

Hello @bvidovic1! That is currently not supported in Hera but it would certainly be a great addition, especially if your use case would benefit from it! As a temporary workaround, one can add EmptyDir and SecretVolume to each task under Resources, as you alluded to!

flaviuvadan avatar Jul 22 '22 11:07 flaviuvadan

Hi,

Thanks for the answer.

Yeah, volume definition can be pre-created and added within each task. Global secrets and volumes would also be a great addition.

Cheers.

bvidovic1 avatar Jul 22 '22 11:07 bvidovic1