summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-24 17:21:24 -0700
committerGitHub <noreply@github.com>2021-03-24 17:21:24 -0700
commite523d09638b05edfd51538ac5786f00793e396ee (patch)
tree2c84c89159b21ebe5455d4030be9ceca25558add /libpod/options.go
parentebb57df0f67c1e92ad246bab74f971390c793b98 (diff)
parentf2181141e1aea2bafef786d83b90eea54010854b (diff)
downloadpodman-e523d09638b05edfd51538ac5786f00793e396ee.tar.gz
podman-e523d09638b05edfd51538ac5786f00793e396ee.tar.bz2
podman-e523d09638b05edfd51538ac5786f00793e396ee.zip
Merge pull request #9808 from thephoenixofthevoid/issue-9650-fixed
[NO TESTS NEEDED] Fix rootless volume plugins
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 85862cc17..2d64abcdf 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -1577,8 +1577,6 @@ func WithVolumeLabels(labels map[string]string) VolumeCreateOption {
}
// WithVolumeOptions sets the options of the volume.
-// If the "local" driver has been selected, options will be validated. There are
-// currently 3 valid options for the "local" driver - o, type, and device.
func WithVolumeOptions(options map[string]string) VolumeCreateOption {
return func(volume *Volume) error {
if volume.valid {
@@ -1587,13 +1585,6 @@ func WithVolumeOptions(options map[string]string) VolumeCreateOption {
volume.config.Options = make(map[string]string)
for key, value := range options {
- switch key {
- case "type", "device", "o", "UID", "GID":
- volume.config.Options[key] = value
- default:
- return errors.Wrapf(define.ErrInvalidArg, "unrecognized volume option %q is not supported with local driver", key)
- }
-
volume.config.Options[key] = value
}