parse: allow extra options for idmap
allow to pass extra information for idmap down to the OCI runtime. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
bdd89a50af
commit
5eef1234ed
|
|
@ -34,6 +34,10 @@ func ValidateVolumeOpts(options []string) ([]string, error) {
|
|||
finalOpts = append(finalOpts, opt)
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(opt, "idmap") {
|
||||
finalOpts = append(finalOpts, opt)
|
||||
continue
|
||||
}
|
||||
|
||||
switch opt {
|
||||
case "noexec", "exec":
|
||||
|
|
@ -84,7 +88,6 @@ func ValidateVolumeOpts(options []string) ([]string, error) {
|
|||
// are intended to be always safe to use, even not on OS
|
||||
// X).
|
||||
continue
|
||||
case "idmap":
|
||||
default:
|
||||
return nil, errors.Errorf("invalid option type %q", opt)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue