Documentation ¶
Index ¶
- Constants
- func GetPodHostFieldLabel(apiVersion string) string
- func NewCommandManageNode(f *clientcmd.Factory, commandName, fullName string, out, errout io.Writer) *cobra.Command
- func ValidOperation(c *cobra.Command) error
- type EvacuateOptions
- type ListPodsOptions
- type ManageNodeOptions
- type NodeOptions
- func (n *NodeOptions) Complete(f *clientcmd.Factory, c *cobra.Command, args []string, out, errout io.Writer) error
- func (n *NodeOptions) GetNodes() ([]*kapi.Node, error)
- func (n *NodeOptions) GetPrinters(gvk schema.GroupVersionKind) (kprinters.ResourcePrinter, error)
- func (n *NodeOptions) GetPrintersByObject(obj runtime.Object) (kprinters.ResourcePrinter, error)
- func (n *NodeOptions) GetPrintersByResource(resource schema.GroupVersionResource) (kprinters.ResourcePrinter, error)
- func (n *NodeOptions) Validate(checkNodeSelector bool) error
- type SchedulableOptions
Constants ¶
View Source
const ManageNodeCommandName = "manage-node"
Variables ¶
This section is empty.
Functions ¶
func GetPodHostFieldLabel ¶
func NewCommandManageNode ¶
func NewCommandManageNode(f *clientcmd.Factory, commandName, fullName string, out, errout io.Writer) *cobra.Command
NewCommandManageNode implements the OpenShift cli manage-node command
func ValidOperation ¶
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 (e *EvacuateOptions) AddFlags(cmd *cobra.Command)
func (*EvacuateOptions) Run ¶
func (e *EvacuateOptions) Run() error
func (*EvacuateOptions) RunEvacuate ¶
func (e *EvacuateOptions) RunEvacuate(node *kapi.Node) error
type ListPodsOptions ¶
type ListPodsOptions struct { Options *NodeOptions // contains filtered or unexported fields }
func (*ListPodsOptions) AddFlags ¶
func (l *ListPodsOptions) AddFlags(cmd *cobra.Command)
func (*ListPodsOptions) Run ¶
func (l *ListPodsOptions) Run() error
type ManageNodeOptions ¶
type ManageNodeOptions struct {
// contains filtered or unexported fields
}
func (*ManageNodeOptions) RunManageNode ¶
func (n *ManageNodeOptions) RunManageNode(c *cobra.Command) error
type NodeOptions ¶
type NodeOptions struct { DefaultNamespace string ExternalKubeClient externalclientset.Interface KubeClient kclientset.Interface Writer io.Writer ErrWriter io.Writer Mapper meta.RESTMapper Typer runtime.ObjectTyper CategoryExpander resource.CategoryExpander RESTClientFactory func(mapping *meta.RESTMapping) (resource.RESTClient, error) Printer func(mapping *meta.RESTMapping, printOptions kprinters.PrintOptions) (kprinters.ResourcePrinter, error) CmdPrinter kprinters.ResourcePrinter CmdPrinterOutput bool NodeNames []string // Common optional params Selector string PodSelector string }
func (*NodeOptions) GetPrinters ¶
func (n *NodeOptions) GetPrinters(gvk schema.GroupVersionKind) (kprinters.ResourcePrinter, error)
func (*NodeOptions) GetPrintersByObject ¶
func (n *NodeOptions) GetPrintersByObject(obj runtime.Object) (kprinters.ResourcePrinter, error)
func (*NodeOptions) GetPrintersByResource ¶
func (n *NodeOptions) GetPrintersByResource(resource schema.GroupVersionResource) (kprinters.ResourcePrinter, error)
func (*NodeOptions) Validate ¶
func (n *NodeOptions) Validate(checkNodeSelector bool) error
type SchedulableOptions ¶
type SchedulableOptions struct { Options *NodeOptions Schedulable bool }
func (*SchedulableOptions) Run ¶
func (s *SchedulableOptions) Run() error
Click to show internal directories.
Click to hide internal directories.