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
fecb5edf
Unverified
Commit
fecb5edf
authored
Oct 04, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #66266 from wking/kubectl-drain-drop-backOff
kubectl: Drop backOff from DrainOptions
parents
0928bb4c
ab993e34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
drain.go
pkg/kubectl/cmd/drain.go
+0
-3
No files found.
pkg/kubectl/cmd/drain.go
View file @
fecb5edf
...
@@ -23,7 +23,6 @@ import (
...
@@ -23,7 +23,6 @@ import (
"strings"
"strings"
"time"
"time"
"github.com/jonboulle/clockwork"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
corev1
"k8s.io/api/core/v1"
corev1
"k8s.io/api/core/v1"
...
@@ -63,7 +62,6 @@ type DrainOptions struct {
...
@@ -63,7 +62,6 @@ type DrainOptions struct {
GracePeriodSeconds
int
GracePeriodSeconds
int
IgnoreDaemonsets
bool
IgnoreDaemonsets
bool
Timeout
time
.
Duration
Timeout
time
.
Duration
backOff
clockwork
.
Clock
DeleteLocalData
bool
DeleteLocalData
bool
Selector
string
Selector
string
PodSelector
string
PodSelector
string
...
@@ -196,7 +194,6 @@ func NewDrainOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *
...
@@ -196,7 +194,6 @@ func NewDrainOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *
PrintFlags
:
genericclioptions
.
NewPrintFlags
(
"drained"
)
.
WithTypeSetter
(
scheme
.
Scheme
),
PrintFlags
:
genericclioptions
.
NewPrintFlags
(
"drained"
)
.
WithTypeSetter
(
scheme
.
Scheme
),
IOStreams
:
ioStreams
,
IOStreams
:
ioStreams
,
backOff
:
clockwork
.
NewRealClock
(),
GracePeriodSeconds
:
-
1
,
GracePeriodSeconds
:
-
1
,
}
}
}
}
...
...
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