We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903cdff commit e62dfeaCopy full SHA for e62dfea
pkg/client/leaderelectionconfig/config.go
@@ -17,18 +17,10 @@ limitations under the License.
17
package leaderelectionconfig
18
19
import (
20
- "time"
21
-
22
"github.com/spf13/pflag"
23
componentbaseconfig "k8s.io/component-base/config"
24
)
25
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
32
// BindFlags binds the LeaderElectionConfiguration struct fields to a flagset
33
func BindFlags(l *componentbaseconfig.LeaderElectionConfiguration, fs *pflag.FlagSet) {
34
fs.BoolVar(&l.LeaderElect, "leader-elect", l.LeaderElect, ""+
0 commit comments