promotionrequests

package
v1.12.0 Latest Latest
Warning

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

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

Documentation

Overview

Package promotionrequests contains the PromotionRequest reconciler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupReconcilerWithManager

func SetupReconcilerWithManager(
	ctx context.Context,
	mgr manager.Manager,
	cfg ReconcilerConfig,
) error

SetupReconcilerWithManager initializes the PromotionRequest reconciler and registers it with the provided Manager.

Types

type ReconcilerConfig

type ReconcilerConfig struct {
	IsDefaultController     bool   `envconfig:"IS_DEFAULT_CONTROLLER"`
	ShardName               string `envconfig:"SHARD_NAME"`
	MaxConcurrentReconciles int    `envconfig:"MAX_CONCURRENT_PROMOTION_REQUEST_RECONCILES" default:"4"`
}

ReconcilerConfig represents configuration for the PromotionRequest reconciler.

func ReconcilerConfigFromEnv

func ReconcilerConfigFromEnv() ReconcilerConfig

ReconcilerConfigFromEnv returns a ReconcilerConfig populated from environment variables.

func (ReconcilerConfig) Name

func (c ReconcilerConfig) Name() string

Name returns the name of the PromotionRequest controller, qualified by shard name when this controller is responsible for a specific shard.

Jump to

Keyboard shortcuts

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