kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/drain Index | Files

package drain

import "k8s.io/kubernetes/pkg/kubectl/cmd/drain"

Index

Package Files

drain.go

func NewCmdCordon Uses

func NewCmdCordon(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewCmdDrain Uses

func NewCmdDrain(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewCmdUncordon Uses

func NewCmdUncordon(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

type DrainCmdOptions Uses

type DrainCmdOptions struct {
    PrintFlags *genericclioptions.PrintFlags
    ToPrinter  func(string) (printers.ResourcePrinterFunc, error)

    Namespace string

    genericclioptions.IOStreams
    // contains filtered or unexported fields
}

func NewDrainCmdOptions Uses

func NewDrainCmdOptions(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *DrainCmdOptions

func (*DrainCmdOptions) Complete Uses

func (o *DrainCmdOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete populates some fields from the factory, grabs command line arguments and looks up the node using Builder

func (*DrainCmdOptions) RunCordonOrUncordon Uses

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 Uses

func (o *DrainCmdOptions) RunDrain() error

RunDrain runs the 'drain' command

Package drain imports 21 packages (graph) and is imported by 11 packages. Updated 2019-07-21. Refresh now. Tools for package owners.