Documentation ¶
Index ¶
Constants ¶
View Source
const ( StageDevelopment = "development" StageProduction = "production" StageEnvironmentVariable = "STAGE" )
View Source
const ( // OperatorAdditionalImagesConfigmapName contains the configmap name which consists of auxiliary yet necessary container images. OperatorAdditionalImagesConfigmapName = "k8s-dogu-operator-additional-images" // ChownInitImageConfigmapNameKey contains the key to retrieve the chown init container image from the OperatorAdditionalImagesConfigmapName configmap. ChownInitImageConfigmapNameKey = "chownInitImage" )
Variables ¶
View Source
var Stage = StageProduction
Functions ¶
This section is empty.
Types ¶
type DoguRegistryData ¶
type DoguRegistryData struct { Endpoint string `json:"endpoint"` Username string `json:"username"` Password string `json:"password"` URLSchema string `json:"urlschema"` }
DoguRegistryData contains all necessary data for the dogu registry.
type OperatorConfig ¶
type OperatorConfig struct { // Namespace specifies the namespace that the operator is deployed to. Namespace string `json:"namespace"` // DoguRegistry contains all necessary data for the dogu registry. DoguRegistry DoguRegistryData `json:"dogu_registry"` // Version contains the current version of the operator Version *core.Version `json:"version"` // NetworkPoliciesEnabled defines whether network policies should be created for dogus and their dependencies NetworkPoliciesEnabled bool `json:"network_policies_enabled"` }
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
func (*OperatorConfig) GetRemoteConfiguration ¶
func (o *OperatorConfig) GetRemoteConfiguration() *core.Remote
GetRemoteConfiguration creates a remote configuration with the configured values.
func (*OperatorConfig) GetRemoteCredentials ¶
func (o *OperatorConfig) GetRemoteCredentials() *core.Credentials
GetRemoteCredentials creates a remote credential pair with the configured values.
Click to show internal directories.
Click to hide internal directories.