Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ControlPlaneNamespace is the namespace where slice operator is running ControlPlaneNamespace = "kubeslice-system" // Name of the cluster ClusterName = os.Getenv("CLUSTER_NAME") )
Functions ¶
func FromContext ¶
FromContext returns a logger from the context.
func NewLogger ¶
func NewLogger() *uzap.SugaredLogger
NewLogger Creates a new SugaredLogger instance with predefined standard fields SugaredLogger makes it easy to use structured logging with logging levels and additional fields
func NewWrappedLogger ¶
Creates a new zap logger, wraps it to logr.Logger using zapr Required for controller-runtime logging
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.