Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentLogLevel ¶
func CurrentLogLevel() operatorv1.LogLevel
CurrentLogLevel attempts to guess the current log level that is used by klog. We can use flags here as well, but this is less ugly ano more programmatically correct than flags.
func LogLevelToKlog ¶
func LogLevelToKlog(logLevel operatorv1.LogLevel) int
LogLevelToKlog transforms operator log level to a klog numeric verbosity level.
func SetVerbosityValue ¶
func SetVerbosityValue(logLevel operatorv1.LogLevel) error
SetVerbosityValue is a nasty hack and attempt to manipulate the global flags as klog does not expose a way to dynamically change the loglevel in runtime.
Types ¶
type LogLevelController ¶
type LogLevelController struct {
// contains filtered or unexported fields
}
func NewClusterOperatorLoggingController ¶
func NewClusterOperatorLoggingController( operatorClient operatorv1helpers.OperatorClient, recorder events.Recorder, ) *LogLevelController
sets the klog level based on desired state
Click to show internal directories.
Click to hide internal directories.