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 ¶
View Source
var Stage = StageProduction
Functions ¶
func GetNamespace ¶ added in v0.6.0
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
Click to show internal directories.
Click to hide internal directories.