Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCordon ¶
func NewCmdDrain ¶
func NewCmdUncordon ¶
Types ¶
type DrainCmdOptions ¶
type DrainCmdOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinterFunc, error) Namespace string genericclioptions.IOStreams // contains filtered or unexported fields }
func NewDrainCmdOptions ¶
func NewDrainCmdOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *DrainCmdOptions
func (*DrainCmdOptions) Complete ¶
Complete populates some fields from the factory, grabs command line arguments and looks up the node using Builder
func (*DrainCmdOptions) RunCordonOrUncordon ¶
func (o *DrainCmdOptions) RunCordonOrUncordon(desired bool) error
RunCordonOrUncordon runs either Cordon or Uncordon. The desired value for "Unschedulable" is passed as the first arg.
func (*DrainCmdOptions) RunDrain ¶
func (o *DrainCmdOptions) RunDrain() error
RunDrain runs the 'drain' command
Click to show internal directories.
Click to hide internal directories.