Documentation
¶
Index ¶
Constants ¶
View Source
const ManageNodeCommandName = "manage-node"
Variables ¶
This section is empty.
Functions ¶
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 (*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 (*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
Source Files
¶
- evacuate.go
- listpods.go
- node.go
- node_options.go
- schedulable.go
Click to show internal directories.
Click to hide internal directories.