Documentation ¶
Overview ¶
Package log provides log utils.
Package log provides log utils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOwners ¶
func AddOwners(ctx context.Context, c client.Client, obj metav1.Object) (context.Context, logr.Logger, error)
AddOwners adds the owners of an Object based on OwnerReferences as k/v pairs to the logger in ctx. Note: If an owner is a MachineSet we also add the owners from the MachineSet OwnerReferences.
func ListToString ¶ added in v1.9.0
ListToString returns a comma-separated list of the first n entries of the list (strings are calculated via stringFunc).
func ObjNamesString ¶ added in v1.9.0
ObjNamesString returns a comma separated list of the object names, limited to five objects. On more than five objects it outputs the first five objects and adds information about how much more are in the given list.
func StringListToString ¶ added in v1.9.0
StringListToString returns a comma separated list of the strings, limited to five objects. On more than five objects it outputs the first five objects and adds information about how much more are in the given list.
Types ¶
This section is empty.