config

package
v0.134.13 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: Apache-2.0 Imports: 2 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 {
	Kubeconfig      string `envconfig:"optional"`
	DebugLabelValue string `envconfig:"optional"`
	Log             struct {
		Level  string `envconfig:"default=info"`
		NoJSON bool   `envconfig:"default=false"`
	}
	IsLocal         bool          `envconfig:"default=false"`
	ServerPort      string        `envconfig:"default=8088,optional"`
	ShutdownTimeout time.Duration `envconfig:"default=1s"`
	EnableHTTP2     bool          `envconfig:"default=false"`
	Metrics         struct {
		BindAddress string `envconfig:"default=:8080"`
		Secure      bool   `envconfig:"default=false"`
	}
	Probes struct {
		BindAddress string `envconfig:"default=:8081"`
	}
	LeaderElection struct {
		Enabled bool `envconfig:"default=false"`
	}
	Subroutines struct {
		ContentConfiguration struct {
			Enabled bool `envconfig:"default=true"`
		}
	}
	MaxConcurrentReconciles int `envconfig:"default=10"`
}

Config struct to hold the app config

func NewFromEnv

func NewFromEnv() (Config, error)

NewFromEnv creates a Config from environment values

Jump to

Keyboard shortcuts

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