probes package - github.com/fluxcd/pkg/runtime/probes - Go Packages

Package probes contains a helper to configure sensible default health and ready probes on a controller-runtime manager.

This section is empty.

This section is empty.

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)
 }

This section is empty.