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 69626a4 commit 425cd22Copy full SHA for 425cd22
validate/validate.go
@@ -383,15 +383,15 @@ func (v *Validator) CheckMounts() (msgs []string) {
383
return
384
}
385
386
- if supportedTypes != nil {
387
- for _, mount := range v.spec.Mounts {
+ for _, mount := range v.spec.Mounts {
+ if supportedTypes != nil {
388
if !supportedTypes[mount.Type] {
389
msgs = append(msgs, fmt.Sprintf("Unsupported mount type %q", mount.Type))
390
391
+ }
392
- if !filepath.IsAbs(mount.Destination) {
393
- msgs = append(msgs, fmt.Sprintf("destination %v is not an absolute path", mount.Destination))
394
- }
+ if !filepath.IsAbs(mount.Destination) {
+ msgs = append(msgs, fmt.Sprintf("destination %v is not an absolute path", mount.Destination))
395
396
397
0 commit comments