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 d2f685f commit 53c7c74Copy full SHA for 53c7c74
pkg/apis/storage/v1alpha/local_storage_spec.go
@@ -45,6 +45,11 @@ func (s LocalStorageSpec) Validate() error {
45
if len(s.LocalPath) == 0 {
46
return maskAny(errors.Wrapf(ValidationError, "localPath cannot be empty"))
47
}
48
+ for _, p := range s.LocalPath {
49
+ if len(p) == 0 {
50
+ return maskAny(errors.Wrapf(ValidationError, "localPath cannot contain empty strings"))
51
+ }
52
53
return nil
54
55
0 commit comments