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.
2 parents 3a9076b + 425cd22 commit f49d861Copy full SHA for f49d861
validate/validate.go
@@ -376,15 +376,15 @@ func (v *Validator) CheckMounts() (msgs []string) {
376
return
377
}
378
379
- if supportedTypes != nil {
380
- for _, mount := range v.spec.Mounts {
+ for _, mount := range v.spec.Mounts {
+ if supportedTypes != nil {
381
if !supportedTypes[mount.Type] {
382
msgs = append(msgs, fmt.Sprintf("Unsupported mount type %q", mount.Type))
383
384
+ }
385
- if !filepath.IsAbs(mount.Destination) {
386
- msgs = append(msgs, fmt.Sprintf("destination %v is not an absolute path", mount.Destination))
387
- }
+ if !filepath.IsAbs(mount.Destination) {
+ msgs = append(msgs, fmt.Sprintf("destination %v is not an absolute path", mount.Destination))
388
389
390
0 commit comments