From 2ccc2d67de623c9570ac793200f0bbe2a955d537 Mon Sep 17 00:00:00 2001 From: Lan Liang Date: Tue, 30 Jul 2024 03:57:43 +0000 Subject: [PATCH] cleanup the arg comment for ResourceLock to indicate that only leases are currently supported. Signed-off-by: Lan Liang --- .../component-base/config/options/leaderelectionconfig.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/staging/src/k8s.io/component-base/config/options/leaderelectionconfig.go b/staging/src/k8s.io/component-base/config/options/leaderelectionconfig.go index bf2a44a0a83..bd90b6481ca 100644 --- a/staging/src/k8s.io/component-base/config/options/leaderelectionconfig.go +++ b/staging/src/k8s.io/component-base/config/options/leaderelectionconfig.go @@ -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.")