Skip to content

Commit 0a901c6

Browse files
committed
add memberlist and multi to allow list
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent afb0c43 commit 0a901c6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/ha/ha_tracker.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ func (cfg *HATrackerConfig) Validate() error {
196196
return fmt.Errorf(errInvalidFailoverTimeout, cfg.FailoverTimeout, minFailureTimeout)
197197
}
198198

199+
// Tracker kv store only supports consul, etcd, memberlist, and multi.
200+
storeAllowedList := []string{"consul", "etcd", "memberlist", "multi"}
201+
if !slices.Contains(storeAllowedList, cfg.KVStore.Store) {
202+
return fmt.Errorf("invalid HATracker KV store type: %s", cfg.KVStore.Store)
203+
}
204+
199205
return nil
200206
}
201207

0 commit comments

Comments
 (0)