drain

package
v0.0.0-...-dd127ae Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drainer

type Drainer struct {
	// contains filtered or unexported fields
}

DrainerFacade provides a wrapper around the SR-IOV DrainInterface implementation to simplify creation and reuse of the drainer across Dpu Operator.

func NewDrainer

func NewDrainer(config *rest.Config) (*Drainer, error)

func (*Drainer) CompleteDrainNode

func (df *Drainer) CompleteDrainNode(ctx context.Context, node *corev1.Node) (bool, error)

func (*Drainer) DrainNode

func (df *Drainer) DrainNode(ctx context.Context, node *corev1.Node, force bool) (bool, error)

Jump to

Keyboard shortcuts

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