We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 512aae5 commit 0f6c1b9Copy full SHA for 0f6c1b9
1 file changed
pkg/deployclient/config.go
@@ -2,6 +2,7 @@ package deployclient
2
3
import (
4
"encoding/hex"
5
+ "fmt"
6
"os"
7
"strconv"
8
"strings"
@@ -129,6 +130,12 @@ func (cfg *Config) Validate() error {
129
130
return ErrResourceRequired
131
}
132
133
+ for i, path := range cfg.Resource {
134
+ if len(path) == 0 {
135
+ return fmt.Errorf("resource at index %d is empty (check for stray commas in --resource)", i)
136
+ }
137
138
+
139
if len(cfg.WorkloadName) > 0 && len(cfg.WorkloadImage) == 0 {
140
return ErrImageRequired
141
0 commit comments