We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e86dd commit 723baa1Copy full SHA for 723baa1
validate/validate.go
@@ -562,6 +562,15 @@ func (v *Validator) CheckLinuxResources() (msgs []string) {
562
msgs = append(msgs, fmt.Sprintf("type of devices %s is invalid", r.Devices[index].Type))
563
}
564
565
+ access := []byte(r.Devices[index].Access)
566
+ for i := 0; i < len(access); i++ {
567
+ switch access[i] {
568
+ case 109, 114, 119:
569
+ default:
570
+ msgs = append(msgs, fmt.Sprintf("access %s is invalid", r.Devices[index].Access))
571
+ return
572
+ }
573
574
575
576
return
0 commit comments