config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CastwareOperatorVersion

type CastwareOperatorVersion struct {
	GitCommit string
	GitRef    string
	Version   string
}

func (*CastwareOperatorVersion) String

func (c *CastwareOperatorVersion) String() string

type Config

type Config struct {
	LogLevel                LogLevel      `envconfig:"LOG_LEVEL" default:"info"`
	RequestTimeout          time.Duration `envconfig:"REQUEST_TIMEOUT" default:"10s"`
	PollActionsTimeout      time.Duration `envconfig:"POLL_ACTIONS_TIMEOUT" default:"10m"`
	CertDir                 string        `envconfig:"CERTS_DIR" default:"/certs"`
	CertsSecret             string        `envconfig:"CERTS_SECRET" default:"castware-operator-certs"`
	PodNamespace            string        `envconfig:"POD_NAMESPACE"`
	OperatorName            string        `envconfig:"OPERATOR_NAME" default:"castware-operator"`
	ServiceName             string        `envconfig:"SERVICE_NAME" default:"castware-operator"`
	HelmReleaseName         string        `envconfig:"HELM_RELEASE_NAME" default:"castware-operator"`
	CertsRotation           bool          `envconfig:"CERTS_ROTATION" default:"false"`
	PodsReadyTimeout        time.Duration `envconfig:"PODS_READY_TIMEOUT" default:"5m"`
	PodsStatusCheckInterval time.Duration `envconfig:"PODS_STATUS_CHECK_INTERVAL" default:"5s"`
}

func GetFromEnvironment

func GetFromEnvironment() (*Config, error)

type LogLevel

type LogLevel logrus.Level

func (*LogLevel) Decode

func (l *LogLevel) Decode(value string) error

func (LogLevel) Level

func (l LogLevel) Level() logrus.Level

Jump to

Keyboard shortcuts

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