config

package
v1.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerConfig

type ControllerConfig struct {
	//nolint:stylecheck
	// Request requeue time(seconds) in case the system still needs to be reconciled
	RequeueTimeSeconds uint `env:"CONTROLLER_REQUEST_REQUEUE_SECONDS" envDefault:"5"`
}

Controller related configurations

type OperatorConfig

type OperatorConfig struct {
	State      StateConfig
	Controller ControllerConfig
}

Operator related configurations

func FromEnv

func FromEnv() *OperatorConfig

type StateConfig

type StateConfig struct {
	ManifestBaseDir string `env:"STATE_MANIFEST_BASE_DIR" envDefault:"./manifests"`
}

state related configurations

Jump to

Keyboard shortcuts

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