hera
hera copied to clipboard
Unable to add volume/secret globally
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?
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!
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.