Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerLogConstructor ¶
func ControllerLogConstructor( controllerName string, object runtime.Object, scheme *runtime.Scheme, ) func(request *reconcile.Request) logr.Logger
ControllerLogConstructor returns the controller-runtime log constructor for a controller. It is similar to the default constructor, but doesn't add duplicated values - like separate namespace and name values - to reduce log line length.
func FromContextOrDefault ¶
FromContextOrDefault returns a Logger from ctx. If no Logger is found, this returns the default controller-runtime logger so we at least don't accidentally discard logs. Prefer using this over logr.FromContextOrDiscard().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.