config

package
v2.2.11 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 10 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 {
	// DisableAuth disables authentication/authorization, should be false for production and true in integration without keycloak
	DisableAuth bool

	// DisableMultitenancy disables multi-tenancy integration, should be false for production and true in integration without multi-tenancy
	DisableMultitenancy bool

	// DisableInventory disables inventory integration, should be false for production and true in integration without infra-manager's inventory
	DisableInventory bool

	// DisableMetrics disables metrics, should be false for production and true in integration without prometheus
	DisableMetrics bool

	// Default template name to use for new projects
	DefaultTemplate string

	// KubeconfigTTL specifies the TTL for kubeconfig JWT tokens
	KubeconfigTTL time.Duration

	OidcUrl              string
	OpaEnabled           bool
	OpaPort              int
	LogLevel             int
	LogFormat            string
	SystemLabelsPrefixes []string
	ClusterDomain        string
	Username             string
	InventoryAddress     string
	ProjectServiceURL    string
}

func ParseConfig

func ParseConfig() *Config

ParseConfig parses the configuration from flags and environment variables

func (*Config) Validate

func (c *Config) Validate() error

Validate the configuration

Jump to

Keyboard shortcuts

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