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