mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
cleanup the arg comment for ResourceLock to indicate that only leases are currently supported.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
This commit is contained in:
parent
17d7d28620
commit
2ccc2d67de
@ -42,8 +42,7 @@ func BindLeaderElectionFlags(l *config.LeaderElectionConfiguration, fs *pflag.Fl
|
||||
"of a leadership. This is only applicable if leader election is enabled.")
|
||||
fs.StringVar(&l.ResourceLock, "leader-elect-resource-lock", l.ResourceLock, ""+
|
||||
"The type of resource object that is used for locking during "+
|
||||
"leader election. Supported options are 'leases', 'endpointsleases' "+
|
||||
"and 'configmapsleases'.")
|
||||
"leader election. Supported options are 'leases'.")
|
||||
fs.StringVar(&l.ResourceName, "leader-elect-resource-name", l.ResourceName, ""+
|
||||
"The name of resource object that is used for locking during "+
|
||||
"leader election.")
|
||||
|
Loading…
Reference in New Issue
Block a user