config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 10 Imported by: 2

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

Jump to

Keyboard shortcuts

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