config

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	// The current namespace in which the operator is running.
	CurrentNamespace string `env:"KEDA_HTTP_OPERATOR_NAMESPACE" envDefault:""`
	// The namespace the operator should watch. Leave blank to
	// tell the operator to watch all namespaces.
	WatchNamespace string `env:"KEDA_HTTP_OPERATOR_WATCH_NAMESPACE" envDefault:""`
	// Leader election durations. Nil means use controller-runtime defaults.
	LeaseDuration *time.Duration `env:"KEDA_HTTP_OPERATOR_LEADER_ELECTION_LEASE_DURATION"`
	RenewDeadline *time.Duration `env:"KEDA_HTTP_OPERATOR_LEADER_ELECTION_RENEW_DEADLINE"`
	RetryPeriod   *time.Duration `env:"KEDA_HTTP_OPERATOR_LEADER_ELECTION_RETRY_PERIOD"`
}

func NewBaseFromEnv

func NewBaseFromEnv() (Base, error)

type ExternalScaler

type ExternalScaler struct {
	ServiceName string `env:"KEDAHTTP_OPERATOR_EXTERNAL_SCALER_SERVICE,required"`
	Port        int32  `env:"KEDAHTTP_OPERATOR_EXTERNAL_SCALER_PORT" envDefault:"8091"`
}

ExternalScaler holds static configuration info for the external scaler

func NewExternalScalerFromEnv

func NewExternalScalerFromEnv() (ExternalScaler, error)

func (ExternalScaler) HostName

func (e ExternalScaler) HostName(namespace string) string

Jump to

Keyboard shortcuts

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