recover

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FuseRecoveryPeriod = "RECOVER_FUSE_PERIOD"
)

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, config config.Config) 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) (*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