From e62dfea99bd80ae32bb0ecdd29afc829235a5cd7 Mon Sep 17 00:00:00 2001 From: danielqsj Date: Tue, 12 Feb 2019 11:38:11 +0800 Subject: [PATCH] remove unused DefaultLeaseDuration --- pkg/client/leaderelectionconfig/config.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/client/leaderelectionconfig/config.go b/pkg/client/leaderelectionconfig/config.go index 7be3d5aa598..223e24fa51b 100644 --- a/pkg/client/leaderelectionconfig/config.go +++ b/pkg/client/leaderelectionconfig/config.go @@ -17,18 +17,10 @@ limitations under the License. package leaderelectionconfig import ( - "time" - "github.com/spf13/pflag" componentbaseconfig "k8s.io/component-base/config" ) -const ( - // DefaultLeaseDuration defines a default duration of lease. - // TODO: This constant should move to the k8s.io/component-base/config package - DefaultLeaseDuration = 15 * time.Second -) - // BindFlags binds the LeaderElectionConfiguration struct fields to a flagset func BindFlags(l *componentbaseconfig.LeaderElectionConfiguration, fs *pflag.FlagSet) { fs.BoolVar(&l.LeaderElect, "leader-elect", l.LeaderElect, ""+