config

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 4 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 GetNamespace added in v0.6.0

func GetNamespace() (string, error)

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