Skip to content

Commit ba0abd0

Browse files
authored
Merge pull request kubernetes#73947 from danielqsj/dld
remove unused DefaultLeaseDuration
2 parents 78254d5 + e62dfea commit ba0abd0

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)