Merge pull request #107185 from ialidzhikov/doc/supported-values

Fix doc for leader-elect-resource-lock flag
This commit is contained in:
Kubernetes Prow Robot 2022-01-04 09:45:16 -08:00 committed by GitHub
commit f9e4cfcf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,8 +42,8 @@ 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 'endpoints', 'configmaps', "+
"'leases', 'endpointsleases' and 'configmapsleases'.")
"leader election. Supported options are 'leases', 'endpointsleases' "+
"and 'configmapsleases'.")
fs.StringVar(&l.ResourceName, "leader-elect-resource-name", l.ResourceName, ""+
"The name of resource object that is used for locking during "+
"leader election.")