You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a new election module using the Kubernetes Lease API. Modify
the existing mechanism to allow selection of election mechanisms by
introducing the `--election_system` parameter, following the same
pattern used for storage and quota system selection.
---------
Co-authored-by: Martin Hutchinson <mhutchinson@gmail.com>
healthzTimeout=flag.Duration("healthz_timeout", time.Second*5, "Timeout used during healthz checks")
71
69
72
70
quotaSystem=flag.String("quota_system", provider.DefaultQuotaSystem, fmt.Sprintf("Quota system to use. One of: %v", quota.Providers()))
@@ -76,6 +74,7 @@ var (
76
74
77
75
storageSystem=flag.String("storage_system", provider.DefaultStorageSystem, fmt.Sprintf("Storage system to use. One of: %v", storage.Providers()))
78
76
77
+
electionSystem=flag.String("election_system", provider.DefaultElectionSystem, fmt.Sprintf("Election system to use. One of: %v", election2.Providers()))
79
78
preElectionPause=flag.Duration("pre_election_pause", 1*time.Second, "Maximum time to wait before starting elections")
80
79
masterHoldInterval=flag.Duration("master_hold_interval", 60*time.Second, "Minimum interval to hold mastership for")
81
80
masterHoldJitter=flag.Duration("master_hold_jitter", 120*time.Second, "Maximal random addition to --master_hold_interval")
0 commit comments