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 9b30051 commit 4e4293aCopy full SHA for 4e4293a
vipconfig/config.go
@@ -310,6 +310,14 @@ func NewConfig() (*Config, error) {
310
}
311
312
313
+ // set trigger-key to '/leader' if DCS type is patroni and nothing is specified
314
+ if triggerKey := viper.GetString("trigger-key"); len(triggerKey) == 0 {
315
+ if viper.GetString("dcs-type") == "patroni" {
316
+ triggerKey = "/leader"
317
+ viper.Set("trigger-key", triggerKey)
318
+ }
319
320
+
321
// set trigger-value to default value if nothing is specified
322
if triggerValue := viper.GetString("trigger-value"); len(triggerValue) == 0 {
323
if viper.GetString("dcs-type") == "patroni" {
0 commit comments