Documentation ¶
Index ¶
Constants ¶
View Source
const ManageNodeCommandName = "manage-node"
Variables ¶
This section is empty.
Functions ¶
func GetPodHostFieldLabel ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.