config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MPL-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 ServerConfig

type ServerConfig struct {
	// argocd
	ArgoCDServerAddr string
	ArgoCDToken      string
	ArgoCDPathPrefix string
	ArgoCDInsecure   bool
	KubernetesConfig string

	// otel
	EnableOtel        bool
	OtelCollectorHost string
	OtelCollectorPort string

	// vcs
	VcsBaseUrl string
	VcsToken   string
	VcsType    string

	// webhooks
	EnsureWebhooks bool
	WebhookSecret  string
	WebhookUrlBase string

	// misc
	EnableConfTest           bool
	FallbackK8sVersion       string
	LabelFilter              string
	LogLevel                 zerolog.Level
	MonitorAllApplications   bool
	OpenAIAPIToken           string
	PoliciesLocation         []string
	SchemasLocations         []string
	ShowDebugInfo            bool
	TidyOutdatedCommentsMode string
	UrlPrefix                string
}

func New added in v1.5.0

func New() (ServerConfig, error)

Jump to

Keyboard shortcuts

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