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.
Click to show internal directories.
Click to hide internal directories.