healthchecker

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// OperatorHealthChecker is a health checker for the operator, which will use operatorStatus to determine the status
	OperatorHealthChecker healthz.Checker = func(_ *http.Request) error {
		operatorStatusSync.RLock()
		defer operatorStatusSync.RUnlock()
		if operatorStatus != nil {
			return operatorStatus
		}
		return nil
	}
)

Functions

func SetOperatorStatusError

func SetOperatorStatusError(status error)

SetOperatorStatusError will set the operator status to the given error

Types

This section is empty.

Jump to

Keyboard shortcuts

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