opcfg

package
v1.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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
	// If the webhook is enabled but we don't require a webhook config patch.
	// This should be true only if the webhook CA bundle was provided during
	// deployment or using cert-manager, which handles the CA bundle injection
	// itself.
	SkipWebhookPatch 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳