runners

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCRunner

func NewGRPCRunner(srv *grpc.Server, sockFile string, leaderElection bool) manager.Runnable

NewGRPCRunner creates controller-runtime's manager.Runnable for a gRPC server. The server will listen on UNIX domain socket at sockFile. If leaderElection is true, the server will run only when it is elected as leader.

func NewNodeStorageResourceReconciler

func NewNodeStorageResourceReconciler(
	mgr manager.Manager,
	dm *deviceManager.DeviceManager,
) manager.Runnable

Types

type Checker

type Checker interface {
	manager.Runnable
	Ready() (bool, error)
}

Checker is the interface to check plugin readiness.

func NewChecker

func NewChecker(check func() error, interval time.Duration) Checker

NewChecker creates controller-runtime's manager.Runnable to run health check function periodically at given interval.

Jump to

Keyboard shortcuts

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