config

package
v0.0.0-...-918d963 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MPL-2.0 Imports: 1 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 {
	Image string `default:"webhookrelay/webhookrelayd-ubi8:latest"`

	// Relay allows setting up relay token key & secret on the operator itself
	// rather than using per CR key & secret
	Relay struct {
		Key    string `envconfig:"RELAY_KEY"`
		Secret string `envconfig:"RELAY_SECRET"`
	}
	// HTTPS proxy variable.
	// Note: not using standard HTTPS_PROXY variable so that operator-sdk clients
	// wouldn't try go through the proxy
	HTTPSPRoxy string `envconfig:"CLIENT_HTTPS_PROXY"`
}

Config stores the configuration settings.

func Load

func Load() (Config, error)

Load loads the configuration from the environment.

func MustLoad

func MustLoad() Config

MustLoad loads the configuration from the environment and panics if an error is encountered.

Jump to

Keyboard shortcuts

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