mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
remove legacyscheme dep from printFlags
This commit is contained in:
@@ -107,7 +107,7 @@ var (
|
||||
|
||||
func NewCmdCordon(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
|
||||
options := &DrainOptions{
|
||||
PrintFlags: printers.NewPrintFlags("cordoned"),
|
||||
PrintFlags: printers.NewPrintFlags("cordoned", legacyscheme.Scheme),
|
||||
|
||||
IOStreams: ioStreams,
|
||||
}
|
||||
@@ -139,7 +139,7 @@ var (
|
||||
|
||||
func NewCmdUncordon(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command {
|
||||
options := &DrainOptions{
|
||||
PrintFlags: printers.NewPrintFlags("uncordoned"),
|
||||
PrintFlags: printers.NewPrintFlags("uncordoned", legacyscheme.Scheme),
|
||||
IOStreams: ioStreams,
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ var (
|
||||
|
||||
func NewDrainOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *DrainOptions {
|
||||
return &DrainOptions{
|
||||
PrintFlags: printers.NewPrintFlags("drained"),
|
||||
PrintFlags: printers.NewPrintFlags("drained", legacyscheme.Scheme),
|
||||
|
||||
IOStreams: ioStreams,
|
||||
backOff: clockwork.NewRealClock(),
|
||||
|
||||
Reference in New Issue
Block a user