Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultZapcoreLevel = zapcore.InfoLevel
First = 100
ThereAfter = 100
DefaultMaxFileSize = 500
DefaultMaxFileAge = 7
DefaultMaxFileRotation = 3
DefaultLevel = "info"
DefaultDevMode = true
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logging ¶
type Logging struct {
FilePath string
Level string
MaxFileSize int
MaxFileAge int
MaxFileRotation int
}
type OperatorConfig ¶
type OperatorConfig struct {
MetricsAddr string
EnableLeaderElection bool
ProbeAddr string
EnableProfiler bool
ServiceAccountName string
PrefixName string // Prefix of the name of all objects created when the operator was deployed
WebhookCertSecret string // when this is empty we will generate the webhook cert
DevMode bool
Logging
}
func (*OperatorConfig) GetLogger ¶
func (o *OperatorConfig) GetLogger() *zap.Logger
getLogger is a wrapper that calls other functions to build a logger.
func (*OperatorConfig) SetFlagArgs ¶
func (o *OperatorConfig) SetFlagArgs()
SetFlagArgs define flags with specified names and default values
Click to show internal directories.
Click to hide internal directories.