Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StageDevelopment is the name for the development-stage StageDevelopment = "development" // StageProduction is the name for the production-stage StageProduction = "production" // StageEnvironmentVariable is the name of the environment-variable containing the configured stage StageEnvironmentVariable = "STAGE" )
Variables ¶
View Source
var (
Stage = StageProduction
)
Functions ¶
This section is empty.
Types ¶
type HelmRepositoryData ¶
type HelmRepositoryData struct {
Endpoint string `json:"endpoint"`
}
HelmRepositoryData contains all necessary data for the helm repository.
func GetHelmRepositoryData ¶
func GetHelmRepositoryData(configMapClient corev1.ConfigMapInterface) (*HelmRepositoryData, error)
GetHelmRepositoryData reads the repository data either from file or from a secret in the cluster.
func (*HelmRepositoryData) GetOciEndpoint ¶
func (hrd *HelmRepositoryData) GetOciEndpoint() (string, error)
GetOciEndpoint returns the configured endpoint of the HelmRepositoryData with the OCI-protocol
type OperatorConfig ¶
type OperatorConfig struct {
// Namespace specifies the namespace that the operator is deployed to.
Namespace string `json:"namespace"`
// Version contains the current version of the operator
Version *core.Version `json:"version"`
// HelmRepositoryData contains all necessary data for the helm repository.
HelmRepositoryData *HelmRepositoryData `json:"helm_repository"`
}
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.