config

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyConfig

type ConcurrencyConfig struct {
	MaxConcurrentReconciles int
}

ConcurrencyConfig holds concurrency settings for a single controller.

type ManagerConfig

type ManagerConfig struct {
	Controller map[string]ConcurrencyConfig
}

ManagerConfig is the operational configuration for the greenhouse controller manager, loaded from the greenhouse-cm ConfigMap.

func NewManagerConfig

func NewManagerConfig(ctx context.Context, cl client.Reader, name, namespace string) (*ManagerConfig, error)

NewManagerConfig loads ManagerConfig from the named ConfigMap. Returns a zero-value config (all defaults apply) if the ConfigMap does not exist.

func (*ManagerConfig) GetMaxConcurrentReconciles

func (c *ManagerConfig) GetMaxConcurrentReconciles(controllerName string, defaultVal int) int

GetMaxConcurrentReconciles returns the configured concurrency for a controller, falling back to defaultVal when not set or zero.

Jump to

Keyboard shortcuts

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