recover

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FuseRecoveryPeriod      = "RECOVER_FUSE_PERIOD"
	RecoverWarningThreshold = "REVOCER_WARNING_THRESHOLD"
)

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled checks if the fuse recover should be enabled.

func Register

func Register(mgr manager.Manager, ctx config.RunningContext) error

Register initializes the fuse recover and registers it to the controller manager.

Types

type FuseRecover

type FuseRecover struct {
	mount.SafeFormatAndMount
	KubeClient client.Client
	ApiReader  client.Reader
	// KubeletClient *kubelet.KubeletClient
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

func NewFuseRecover

func NewFuseRecover(kubeClient client.Client, recorder record.EventRecorder, apiReader client.Reader, locks *utils.VolumeLocks) (*FuseRecover, error)

func (*FuseRecover) Start

func (r *FuseRecover) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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