node

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ManageNodeCommandName = "manage-node"

Variables

This section is empty.

Functions

func GetPodHostFieldLabel

func GetPodHostFieldLabel(apiVersion string) string

func NewCommandManageNode

func NewCommandManageNode(f kcmdutil.Factory, commandName, fullName string, streams genericclioptions.IOStreams) *cobra.Command

NewCommandManageNode implements the OpenShift cli manage-node command

Types

type EvacuateOptions

type EvacuateOptions struct {
	Options *NodeOptions

	// Optional params
	DryRun      bool
	Force       bool
	GracePeriod int64
	// contains filtered or unexported fields
}

func NewEvacuateOptions

func NewEvacuateOptions(nodeOptions *NodeOptions) *EvacuateOptions

NewEvacuateOptions creates a new EvacuateOptions with default values.

func (*EvacuateOptions) AddFlags

func (o *EvacuateOptions) AddFlags(cmd *cobra.Command)

func (*EvacuateOptions) Run

func (o *EvacuateOptions) Run() error

func (*EvacuateOptions) RunEvacuate

func (o *EvacuateOptions) RunEvacuate(node *corev1.Node) error

type ListPodsOptions

type ListPodsOptions struct {
	Options *NodeOptions
	// contains filtered or unexported fields
}

func (*ListPodsOptions) AddFlags

func (o *ListPodsOptions) AddFlags(cmd *cobra.Command)

func (*ListPodsOptions) Run

func (o *ListPodsOptions) Run() error

type ManageNodeOptions

type ManageNodeOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func NewManageNodeOptions

func NewManageNodeOptions(streams genericclioptions.IOStreams) *ManageNodeOptions

func (*ManageNodeOptions) Complete

func (o *ManageNodeOptions) Complete(c *cobra.Command, f kcmdutil.Factory, args []string) error

func (*ManageNodeOptions) RunManageNode

func (o *ManageNodeOptions) RunManageNode(c *cobra.Command) error

func (*ManageNodeOptions) Validate

func (o *ManageNodeOptions) Validate() error

type NodeOptions

type NodeOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	DefaultNamespace string
	KubeClient       kubernetes.Interface

	ToPrinter func(string) (printers.ResourcePrinter, error)

	Builder *resource.Builder

	NoHeaders bool
	NodeNames []string

	// Common optional params
	Selector    string
	PodSelector string

	CheckNodeSelector bool

	genericclioptions.IOStreams
}

func NewNodeOptions

func NewNodeOptions(streams genericclioptions.IOStreams) *NodeOptions

func (*NodeOptions) Complete

func (o *NodeOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error

func (*NodeOptions) GetNodes

func (o *NodeOptions) GetNodes() ([]*corev1.Node, error)

func (*NodeOptions) Validate

func (o *NodeOptions) Validate() error

type SchedulableOptions

type SchedulableOptions struct {
	Options *NodeOptions

	Schedulable bool
}

func NewSchedulableOptions

func NewSchedulableOptions(nodeOpts *NodeOptions) *SchedulableOptions

func (*SchedulableOptions) Run

func (s *SchedulableOptions) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL