Skip to content

Commit fa49c8e

Browse files
author
Ma Shimiao
authored
Merge pull request #370 from q384566678/rootfsPropagation-test
validate: modify the valid value of rootfsPropagation
2 parents 65b8b7e + 1a159f1 commit fa49c8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

validate/validate.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,10 @@ func (v *Validator) CheckLinux() (msgs []string) {
502502
case "rslave":
503503
case "shared":
504504
case "rshared":
505+
case "unbindable":
506+
case "runbindable":
505507
default:
506-
msgs = append(msgs, "rootfsPropagation must be empty or one of \"private|rprivate|slave|rslave|shared|rshared\"")
508+
msgs = append(msgs, "rootfsPropagation must be empty or one of \"private|rprivate|slave|rslave|shared|rshared|unbindable|runbindable\"")
507509
}
508510

509511
for _, maskedPath := range v.spec.Linux.MaskedPaths {

0 commit comments

Comments
 (0)