handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeReplacementHandler

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

NodeReplacementHandler handles the business logic within the NodeReplacement controller.

func NewNodeReplacementHandler

func NewNodeReplacementHandler(c client.Client, opts *Options) *NodeReplacementHandler

NewNodeReplacementHandler creates a new NodeReplacementHandler

func (*NodeReplacementHandler) Handle

Handle performs the business logic of a NodeReplacement and returns information in a Result. The use of fallthrough is to ensure that one instance of a NodeReplacement can be handled in full without interruption

type Options

type Options struct {
	// EvictionGracePeriod determines how long the controller should attempt to
	// evict a pod before marking it a failed eviction
	EvictionGracePeriod *time.Duration

	// DrainTimeout determines how long the controller should attempt to drain a
	// node before timing out. Zero means infinite
	DrainTimeout *time.Duration

	// IgnoreAllDaemonSets instructs the controller to ignore all DaemonSet
	// managed pods. Defaults true
	IgnoreAllDaemonSets *bool

	// DeleteLocalData instructs the controller to delete local data belonging
	// to pods (emptyDir). Defaults true
	DeleteLocalData *bool

	// ForcePodDeletion instructs the controller to continue even if there are
	// pods not managed by a ReplicationController, ReplicaSet, Job, DaemonSet
	// or StatefulSet. Defaults false
	ForcePodDeletion *bool

	// Config is used to construct a kubernetes client
	Config *rest.Config
	// contains filtered or unexported fields
}

Options are used to configure the NodeReplacementHandler

func (*Options) Complete

func (o *Options) Complete()

Complete defaults any values that are not explicitly set

Jump to

Keyboard shortcuts

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