diff --git a/pkg/kubectl/cmd/drain.go b/pkg/kubectl/cmd/drain.go index 35eb15d69d8..2f515270095 100644 --- a/pkg/kubectl/cmd/drain.go +++ b/pkg/kubectl/cmd/drain.go @@ -23,7 +23,6 @@ import ( "strings" "time" - "github.com/jonboulle/clockwork" "github.com/spf13/cobra" corev1 "k8s.io/api/core/v1" @@ -63,7 +62,6 @@ type DrainOptions struct { GracePeriodSeconds int IgnoreDaemonsets bool Timeout time.Duration - backOff clockwork.Clock DeleteLocalData bool Selector string PodSelector string @@ -196,7 +194,6 @@ func NewDrainOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) * PrintFlags: genericclioptions.NewPrintFlags("drained").WithTypeSetter(scheme.Scheme), IOStreams: ioStreams, - backOff: clockwork.NewRealClock(), GracePeriodSeconds: -1, } }