Join GitHub today
Add 'oc set volume --sub-path' option, or equivalent. #16275
There is no way from the command line using
In other words, any option on 'oc set volume' which allows setting:
when mounting the volume into a container.
One can specify a sub path through the web console, but not with the command line unless not interpreting the help messages properly.
Seems it would be useful to have a
This would avoid needing to manually edit resource definitions for the deployment configuration to add such a volume mount.
Steps To Reproduce
Try and find option of
Can't seem to find such an option.
Would like to be able to do:
One has to use the same name because it appears that if you reference the same persistent volume claim more than once in a deployment config, from multiple volume definitions with different names, that OpenShift will fail to deploy anything.
The web console provides a way of specifying a sub path, but the command line doesn't provide an easy equivalent and forces you to edit resource definitions directly as YAML/JSON.
Although the web console provides a way of mounting from a sub path, it fails on not providing an equivalent for the
Opened PR to add
As for the