settings

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerConfigurationName is the name of the global controller configuration resource.
	ControllerConfigurationName = "promoter-controller-configuration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is responsible for managing the global controller configuration for the promoter controller.

func NewManager

func NewManager(client client.Client, config ManagerConfig) *Manager

NewManager creates a new settings Manager instance with the provided client and configuration.

func (*Manager) GetArgoCDCommitStatusRequeueDuration added in v0.2.0

func (m *Manager) GetArgoCDCommitStatusRequeueDuration(ctx context.Context) (time.Duration, error)

GetArgoCDCommitStatusRequeueDuration returns the duration after which ArgoCDCommitStatuses should be requeued.

func (*Manager) GetChangeTransferPolicyRequeueDuration added in v0.2.0

func (m *Manager) GetChangeTransferPolicyRequeueDuration(ctx context.Context) (time.Duration, error)

GetChangeTransferPolicyRequeueDuration returns the duration after which ChangeTransferPolicies should be requeued.

func (*Manager) GetControllerConfiguration added in v0.2.0

func (m *Manager) GetControllerConfiguration(ctx context.Context) (*promoterv1alpha1.ControllerConfiguration, error)

GetControllerConfiguration retrieves the global controller configuration for the promoter controller.

func (*Manager) GetControllerNamespace added in v0.4.0

func (m *Manager) GetControllerNamespace() string

GetControllerNamespace returns the namespace where the controller is running.

func (*Manager) GetPromotionStrategyRequeueDuration added in v0.2.0

func (m *Manager) GetPromotionStrategyRequeueDuration(ctx context.Context) (time.Duration, error)

GetPromotionStrategyRequeueDuration returns the duration after which PromotionStrategies should be requeued.

func (*Manager) GetPullRequestRequeueDuration added in v0.4.0

func (m *Manager) GetPullRequestRequeueDuration(ctx context.Context) (time.Duration, error)

GetPullRequestRequeueDuration returns the duration after which pull requests should be requeued.

type ManagerConfig

type ManagerConfig struct {
	// ControllerNamespace is the namespace where the promoter controller is running.
	ControllerNamespace string
}

ManagerConfig holds the configuration for the settings Manager.

Jump to

Keyboard shortcuts

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