config

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StageDevelopment = "development"
	StageProduction  = "production"
	StageEnvVar      = "STAGE"
)
View Source
const (
	// OperatorAdditionalImagesConfigmapName contains the configmap name which consists of auxiliary yet necessary container images.
	OperatorAdditionalImagesConfigmapName = "k8s-backup-operator-additional-images"
	// OperatorImageConfigmapNameKey contains the key to retrieve this operators'
	// container image from the OperatorAdditionalImagesConfigmapName configmap.
	OperatorImageConfigmapNameKey = "operatorImage"
)

Variables

Functions

func ConfigureLogger added in v1.5.0

func ConfigureLogger()

func GetLogLevel added in v1.5.0

func GetLogLevel() (string, error)

func GetNamespace added in v0.6.0

func GetNamespace() (string, error)

func GetStagePullPolicy added in v1.6.0

func GetStagePullPolicy() corev1.PullPolicy

func IsStageDevelopment

func IsStageDevelopment() bool

Types

type OperatorConfig

type OperatorConfig struct {
	// Version contains the current version of the operator
	Version *semver.Version
	// Namespace specifies the namespace that the operator is deployed to.
	Namespace string
}

OperatorConfig contains all configurable values for the dogu operator.

func NewOperatorConfig

func NewOperatorConfig(version string) (*OperatorConfig, error)

NewOperatorConfig creates a new operator config by reading values from the environment variables

Jump to

Keyboard shortcuts

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