operatorconfig

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomLoggerSetup func() logr.Logger

Functions

This section is empty.

Types

type DefaultConfig

type DefaultConfig struct {
	MetricsAddr          string `long:"metrics-bind-address" description:"The address the metrics endpoint binds to." default:":8080"`
	ProbeAddr            string `long:"health-probe-bind-address" description:"The address the probe endpoint binds to." default:":8081"`
	EnableLeaderElection bool   `long:"enable-leader-election" description:"LeaderElection configMap name"`
	LoggingLevel         string `long:"loglevel" description:"Can be debug or info" default:"info"`
	LoggingType          string `long:"logtype" description:"Can be prod or dev" default:"dev"`
	ConfigPath           string `long:"config" description:"The path to an additional custom operator's config'" default:""`
	LocalEnv             bool   `long:"localEnv" description:"DEBUG ONLY!"`
	Kubeconfig           string `` /* 129-byte string literal not displayed */
}

func (DefaultConfig) GetDefaultConfig added in v0.1.3

func (d DefaultConfig) GetDefaultConfig() DefaultConfig

type OperatorConfig

type OperatorConfig interface {
	GetDefaultConfig() DefaultConfig
	// Initialize may help to do additional initialization during configuration instantiation
	Initialize() error
}

Jump to

Keyboard shortcuts

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