Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ba0abd0b
Unverified
Commit
ba0abd0b
authored
May 23, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73947 from danielqsj/dld
remove unused DefaultLeaseDuration
parents
78254d55
e62dfea9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
config.go
pkg/client/leaderelectionconfig/config.go
+0
-8
No files found.
pkg/client/leaderelectionconfig/config.go
View file @
ba0abd0b
...
...
@@ -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
,
""
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment