kubernetes

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKeyStatefuSetStuckResultName = "recover.kubernetes.statefulset_stuck.result"
	ContextKeyStatefulSetStuckBugLink   = "recover.kubernetes.statefulset_stuck.bug_link"
)
View Source
const (
	ContextKeyNodeCordonResultName = "recover.kubernetes.node_cordon.result.name"
)
View Source
const (
	ContextKeySubpathRemountRecoverResult = "recover.kubernetes.subpath_remount.result"
)

Variables

This section is empty.

Functions

func NewNodeCordon

func NewNodeCordon(
	ctx context.Context,
	logger logr.Logger,
	client client.Client,
	nodeName string,
	nodeCordonEnabled bool,
) processors.Processor

NewNodeCordon creates a new nodeCordon.

func NewStatefuSetStuck added in v0.3.0

func NewStatefuSetStuck(
	ctx context.Context,
	logger logr.Logger,
	client client.Client,
	statefulsetStuckEnabled bool,
) processors.Processor

NewStatefuSetStuck creates a new StatefuSetStuck.

func NewSubPathRemountRecover

func NewSubPathRemountRecover(
	ctx context.Context,
	logger logr.Logger,
	subPathRemountEnabled bool,
) processors.Processor

NewSubPathRemountRecover creates a new subPathRemountRecover.

Types

type StatefuSetStuck added in v0.3.0

type StatefuSetStuck struct {
	// Context carries values across API boundaries.
	context.Context
	// Logger represents the ability to log messages.
	logr.Logger
	// contains filtered or unexported fields
}

StatefuSetStuck recover a bug of statefulset.

func (*StatefuSetStuck) Handler added in v0.3.0

func (ss *StatefuSetStuck) Handler(w http.ResponseWriter, r *http.Request)

Handler handles http requests for marking node as unschedulable.

Jump to

Keyboard shortcuts

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