config

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const MinTelemetryInterval time.Duration = 2 * time.Minute

Variables

View Source
var (
	DefaultTelemetryInterval       = 5 * time.Minute
	ErrorTelemetryIntervalTooSmall = fmt.Errorf("telemetryInterval smaller than %v is not allowed", MinTelemetryInterval)
)

Functions

This section is empty.

Types

type OperatorConfig

type OperatorConfig struct {
	config.CaptureConfig `mapstructure:",squash"`

	InstallCRDs     bool   `yaml:"installCRDs"`
	EnableTelemetry bool   `yaml:"enableTelemetry"`
	LogLevel        string `yaml:"logLevel"`
	// EnableRetinaEndpoint indicates whether to enable RetinaEndpoint
	EnableRetinaEndpoint bool          `yaml:"enableRetinaEndpoint"`
	RemoteContext        bool          `yaml:"remoteContext"`
	TelemetryInterval    time.Duration `yaml:"telemetryInterval"`
}

func GetConfig added in v0.0.13

func GetConfig(cfgFileName string) (*OperatorConfig, error)

Jump to

Keyboard shortcuts

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