Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxPodsLogged is the maximum number of pods for which we will // log detailed information every loop at verbosity < 5. MaxPodsLogged = 20 // MaxPodsLoggedV5 is the maximum number of pods for which we will // log detailed information every loop at verbosity >= 5. MaxPodsLoggedV5 = 1000 // MaxNodesLogged is the maximum number of nodes for which we will // log detailed information every loop at verbosity < 5. MaxNodesLogged = 20 // MaxNodesLoggedV5 is the maximum number of nodes for which we will // log detailed information every loop at verbosity >= 5. MaxNodesLoggedV5 = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quota ¶
type Quota struct {
// contains filtered or unexported fields
}
Quota represents the amount of log lines that can still be printed before suppression starts.
func NewLoggingQuota ¶
NewLoggingQuota returns a Quota object with limit & left set to the passed value.
func NodesLoggingQuota ¶
func NodesLoggingQuota() *Quota
NodesLoggingQuota returns a new quota with default limit for nodes at current verbosity.
func PodsLoggingQuota ¶
func PodsLoggingQuota() *Quota
PodsLoggingQuota returns a new quota with default limit for pods at current verbosity.
type Verbose ¶
type Verbose struct {
// contains filtered or unexported fields
}
Verbose is a wrapper for klog.Verbose that implements UpTo and Over. It provides a subset of methods exposed by klog.Verbose.
func (Verbose) Info ¶
func (v Verbose) Info(args ...interface{})
Info is a wrapper for klog.Info that logs if the Quota allows for it.
Click to show internal directories.
Click to hide internal directories.