Documentation
¶
Index ¶
- Constants
- type Manager
- func (m *Manager) GetArgoCDCommitStatusRequeueDuration(ctx context.Context) (time.Duration, error)
- func (m *Manager) GetChangeTransferPolicyRequeueDuration(ctx context.Context) (time.Duration, error)
- func (m *Manager) GetControllerConfiguration(ctx context.Context) (*promoterv1alpha1.ControllerConfiguration, error)
- func (m *Manager) GetControllerNamespace() string
- func (m *Manager) GetPromotionStrategyRequeueDuration(ctx context.Context) (time.Duration, error)
- func (m *Manager) GetPullRequestRequeueDuration(ctx context.Context) (time.Duration, error)
- type ManagerConfig
Constants ¶
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
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
GetControllerNamespace returns the namespace where the controller is running.
func (*Manager) GetPromotionStrategyRequeueDuration ¶ added in v0.2.0
GetPromotionStrategyRequeueDuration returns the duration after which PromotionStrategies 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.