Skip to content

Commit e62dfea

Browse files
committed
remove unused DefaultLeaseDuration
1 parent 903cdff commit e62dfea

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/client/leaderelectionconfig/config.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,10 @@ limitations under the License.
1717
package leaderelectionconfig
1818

1919
import (
20-
"time"
21-
2220
"github.com/spf13/pflag"
2321
componentbaseconfig "k8s.io/component-base/config"
2422
)
2523

26-
const (
27-
// DefaultLeaseDuration defines a default duration of lease.
28-
// TODO: This constant should move to the k8s.io/component-base/config package
29-
DefaultLeaseDuration = 15 * time.Second
30-
)
31-
3224
// BindFlags binds the LeaderElectionConfiguration struct fields to a flagset
3325
func BindFlags(l *componentbaseconfig.LeaderElectionConfiguration, fs *pflag.FlagSet) {
3426
fs.BoolVar(&l.LeaderElect, "leader-elect", l.LeaderElect, ""+

0 commit comments

Comments
 (0)