config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 3 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 {
	MetricsAddr          string
	EnableLeaderElection bool
	ProbeAddr            string
	SecureMetrics        bool
	EnableHTTP2          bool
	OperatorNamespace    string
	GrafanaURL           *url.URL

	ManagementCluster common.ManagementCluster

	Monitoring monitoring.Config

	Environment Environment
}

type Environment

type Environment struct {
	GrafanaAdminUsername string `env:"GRAFANA_ADMIN_USERNAME,required=true"`
	GrafanaAdminPassword string `env:"GRAFANA_ADMIN_PASSWORD,required=true"`
	GrafanaTLSCertFile   string `env:"GRAFANA_TLS_CERT_FILE,required=true"`
	GrafanaTLSKeyFile    string `env:"GRAFANA_TLS_KEY_FILE,required=true"`

	OpsgenieApiKey string `env:"OPSGENIE_API_KEY,required=true"`
}

Jump to

Keyboard shortcuts

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