File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ type reflectorCliConfig struct {
7878}
7979
8080type multiReflectorConfig struct {
81- LDBPaths []string `conf:"ldb-paths" help:"list of ldbs, each ldb is managed by a unique reflector" validate:"nonzero" `
81+ LDBPaths []string `conf:"ldb-paths" help:"list of ldbs, each ldb is managed by a unique reflector"`
8282}
8383
8484type executiveCliConfig struct {
@@ -495,6 +495,10 @@ func multiReflector(ctx context.Context, args []string) {
495495 enableDebug ()
496496 }
497497
498+ if len (cliCfg .MultiReflector .LDBPaths ) <= 1 {
499+ panic ("multi-reflector mode requires at least 2 ldb paths" )
500+ }
501+
498502 var promHandler * prometheus.Handler
499503 if len (cliCfg .MetricsBind ) > 0 {
500504 promHandler = & prometheus.Handler {}
You can’t perform that action at this time.
0 commit comments