summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-28 13:57:16 +0000
committerGitHub <noreply@github.com>2022-06-28 13:57:16 +0000
commit8267cd3c514ed1e8f41a7e4b6017f11400f134aa (patch)
tree19f30756ceda7e152ef3cdefaf5627b746e2a403 /vendor
parent9c5d97b5c5b583fc3b3c8af52bf3e1b6a5c2cb90 (diff)
parentaada13f244d52dad9b6a1cfaa725e9d36d75a858 (diff)
downloadpodman-8267cd3c514ed1e8f41a7e4b6017f11400f134aa.tar.gz
podman-8267cd3c514ed1e8f41a7e4b6017f11400f134aa.tar.bz2
podman-8267cd3c514ed1e8f41a7e4b6017f11400f134aa.zip
Merge pull request #14734 from giuseppe/copyup-switch-order
volume: add two new options copy and nocopy
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/containers/common/pkg/parse/parse.go7
-rw-r--r--vendor/modules.txt2
2 files changed, 7 insertions, 2 deletions
diff --git a/vendor/github.com/containers/common/pkg/parse/parse.go b/vendor/github.com/containers/common/pkg/parse/parse.go
index 6c4958cc2..43b783e0c 100644
--- a/vendor/github.com/containers/common/pkg/parse/parse.go
+++ b/vendor/github.com/containers/common/pkg/parse/parse.go
@@ -14,7 +14,7 @@ import (
// ValidateVolumeOpts validates a volume's options
func ValidateVolumeOpts(options []string) ([]string, error) {
- var foundRootPropagation, foundRWRO, foundLabelChange, bindType, foundExec, foundDev, foundSuid, foundChown, foundUpperDir, foundWorkDir int
+ var foundRootPropagation, foundRWRO, foundLabelChange, bindType, foundExec, foundDev, foundSuid, foundChown, foundUpperDir, foundWorkDir, foundCopy int
finalOpts := make([]string, 0, len(options))
for _, opt := range options {
// support advanced options like upperdir=/path, workdir=/path
@@ -88,6 +88,11 @@ func ValidateVolumeOpts(options []string) ([]string, error) {
// are intended to be always safe to use, even not on OS
// X).
continue
+ case "copy", "nocopy":
+ foundCopy++
+ if foundCopy > 1 {
+ return nil, errors.Errorf("invalid options %q, can only specify 1 'copy' or 'nocopy' option", strings.Join(options, ", "))
+ }
default:
return nil, errors.Errorf("invalid option type %q", opt)
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index e72779e09..7642cbff5 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -111,7 +111,7 @@ github.com/containers/buildah/pkg/rusage
github.com/containers/buildah/pkg/sshagent
github.com/containers/buildah/pkg/util
github.com/containers/buildah/util
-# github.com/containers/common v0.48.1-0.20220624132904-722a80e139ec
+# github.com/containers/common v0.48.1-0.20220627112538-97d9656daba8
## explicit
github.com/containers/common/libimage
github.com/containers/common/libimage/define