Skip to content

Commit cee692b

Browse files
authored
Merge pull request #473 from q384566678/rootfs-value
validate: Delete the extra validation
2 parents ea53765 + 16be985 commit cee692b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

validate/validate.go

-14
Original file line numberDiff line numberDiff line change
@@ -693,20 +693,6 @@ func (v *Validator) CheckLinux() (errs error) {
693693
errs = multierror.Append(errs, v.CheckSeccomp())
694694
}
695695

696-
switch v.spec.Linux.RootfsPropagation {
697-
case "":
698-
case "private":
699-
case "rprivate":
700-
case "slave":
701-
case "rslave":
702-
case "shared":
703-
case "rshared":
704-
case "unbindable":
705-
case "runbindable":
706-
default:
707-
errs = multierror.Append(errs, errors.New("rootfsPropagation must be empty or one of \"private|rprivate|slave|rslave|shared|rshared|unbindable|runbindable\""))
708-
}
709-
710696
for _, maskedPath := range v.spec.Linux.MaskedPaths {
711697
if !strings.HasPrefix(maskedPath, "/") {
712698
errs = multierror.Append(errs, fmt.Errorf("maskedPath %v is not an absolute path", maskedPath))

0 commit comments

Comments
 (0)