config

package
v0.0.0-...-54c5aff Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace             string        `env:"NAMESPACE" envDefault:"default"`
	LeaderElectionEnabled bool          `env:"LEADERELECTION_ENABLED" envDefault:"true"`
	ContainerImage        string        `env:"CONTAINER_IMAGE,required"`
	LogLevel              zapcore.Level `env:"LOGLEVEL" envDefault:"info"`
	LogFormat             string        `env:"LOGFORMAT" envDefault:"json"`
	WebhooksPort          int32         `env:"WEBHOOKS_PORT" envDefault:"7340"`
	MetricsPort           int32         `env:"METRICS_PORT" envDefault:"8329"`
	WebhooksEnabled       bool          `env:"WEBHOOKS_ENABLED" envDefault:"true"`

	CoupledVarnishImage string
}

Config contains the Varnish Operator configs

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig uses the env library to read in environment variables and return an instance of Config

Jump to

Keyboard shortcuts

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