nodedrain

package
v9.4.47+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// DrainAttachments creates a task to drain volume attachments
	// from the provided node in the cluster.
	DrainAttachments(ctx context.Context, in *api.SdkNodeDrainAttachmentsRequest) (*api.SdkJobResponse, error)
	// CordonAttachments disables any new volume attachments
	// from the provided node in the cluster. Existing volume attachments
	// will stay on the node.
	CordonAttachments(ctx context.Context, in *api.SdkNodeCordonAttachmentsRequest) (*api.SdkNodeCordonAttachmentsResponse, error)
	// UncordonAttachments re-enables volume attachments
	// on the provided node in the cluster.
	UncordonAttachments(ctx context.Context, in *api.SdkNodeUncordonAttachmentsRequest) (*api.SdkNodeUncordonAttachmentsResponse, error)
}

Provider is a collection of APIs for performing different kinds of drain operations on a node

func NewDefaultNodeDrainProvider

func NewDefaultNodeDrainProvider() Provider

NewDefaultNodeDrainProvider does not any node drain related operations

type UnsupportedNodeDrainProvider

type UnsupportedNodeDrainProvider struct {
}

UnsupportedNodeDrainProvider unsupported implementation of drain.

func (*UnsupportedNodeDrainProvider) CordonAttachments

func (*UnsupportedNodeDrainProvider) DrainAttachments

func (*UnsupportedNodeDrainProvider) UncordonAttachments

Jump to

Keyboard shortcuts

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