config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 8 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)
	ErrCaptureHostPathBaseDirNotAbsolute = errors.New("captureHostPathBaseDir must be an absolute path")
)

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