Skip to content

Commit

Permalink
Merge pull request #927 from giuseppe/opts-to-idmap
Browse files Browse the repository at this point in the history
parse: allow extra options for idmap
  • Loading branch information
rhatdan authored Feb 14, 2022
2 parents d1b758b + 1b4e7aa commit 0265e6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 0265e6b

Please sign in to comment.