Documentation ¶
Overview ¶
Package probes contains a helper to configure sensible default health and ready probes on a controller-runtime manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupChecks ¶
SetupChecks configures simple default ready and health probes on the given mgr.
The func can be used in the main.go file of your controller, after initialisation of the manager:
func main() { mgr, err := ctrl.NewManager(cfg, ctrl.Options{}) if err != nil { log.Error(err, "unable to start manager") os.Exit(1) } probes.SetupChecks(mgr, log) }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.