etc

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package etc contains the configuration for the operator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LeaderElection          bool       `env:"LEADER_ELECTION"               envDefault:"true"`
	WebhookCertDir          string     `env:"WEBHOOK_CERT_DIR"`
	MaxConcurrentReconciles int        `env:"MAX_CONCURRENT_RECONCILES"     envDefault:"10"`
	ControllerNamespace     string     `env:"CONTROLLER_NAMESPACE,required"`
	LogFormat               LogFormat  `env:"LOG_FORMAT"                    envDefault:"json"`
	LogLevel                slog.Level `env:"LOG_LEVEL"                     envDefault:"INFO"`
}

func GetOperatorConfig

func GetOperatorConfig() (Config, error)

type LogFormat

type LogFormat string
var (
	JSON LogFormat = "json"
	TEXT LogFormat = "text"
)

type LogLevel

type LogLevel string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL