diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-12 13:17:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 13:17:02 -0400 |
commit | 87d129e805c993acbc571597baba8101afd475fe (patch) | |
tree | 9e549bdb44bdace7ad62d7efe6123377e2df7ee8 /pkg/specgenutil | |
parent | db7cd88c6781c3d42376f02b5b1547c466c45d3e (diff) | |
parent | 81a95fade593d4fda6c6f340865ae24824ac2ac8 (diff) | |
download | podman-87d129e805c993acbc571597baba8101afd475fe.tar.gz podman-87d129e805c993acbc571597baba8101afd475fe.tar.bz2 podman-87d129e805c993acbc571597baba8101afd475fe.zip |
Merge pull request #13788 from flouthoc/support-volume-opts
run, mount: allow setting driver specific option using `volume-opt=`
Diffstat (limited to 'pkg/specgenutil')
-rw-r--r-- | pkg/specgenutil/volumes.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgenutil/volumes.go b/pkg/specgenutil/volumes.go index 8a861077a..aa07de0af 100644 --- a/pkg/specgenutil/volumes.go +++ b/pkg/specgenutil/volumes.go @@ -523,6 +523,8 @@ func getNamedVolume(args []string) (*specgen.NamedVolume, error) { for _, val := range args { kv := strings.SplitN(val, "=", 2) switch kv[0] { + case "volume-opt": + newVolume.Options = append(newVolume.Options, val) case "ro", "rw": if setRORW { return nil, errors.Wrapf(optionArgError, "cannot pass 'ro' and 'rw' options more than once") |