Documentation ¶
Index ¶
- Constants
- Variables
- type ClusterOperator
- type ClusterOperatorReconciler
- type MutateFunc
- type Mutator
- type NowFunc
- type ReconcilerConfig
- type ReconcilerOption
- func WithClient(cli client.Client) ReconcilerOption
- func WithLog(log logr.Logger) ReconcilerOption
- func WithName(name string) ReconcilerOption
- func WithNamespace(namespace string) ReconcilerOption
- func WithNow(now NowFunc) ReconcilerOption
- func WithOLMOperator() ReconcilerOption
- func WithScheme(scheme *runtime.Scheme) ReconcilerOption
- func WithSyncChannel(syncCh <-chan error) ReconcilerOption
- func WithTargetVersions(targetVersions ...configv1.OperandVersion) ReconcilerOption
- type SerialMutations
- type SyncTracker
Constants ¶
View Source
const ( IncompatibleOperatorsInstalled = "IncompatibleOperatorsInstalled" ErrorCheckingOperatorCompatibility = "ErrorCheckingOperatorCompatibility" )
View Source
const (
MaxOpenShiftVersionProperty = "olm.maxOpenShiftVersion"
)
Variables ¶
View Source
var (
// AddToScheme adds all types necessary for the controller to operate.
AddToScheme = localSchemeBuilder.AddToScheme
)
Functions ¶
This section is empty.
Types ¶
type ClusterOperator ¶
type ClusterOperator struct {
*configv1.ClusterOperator
}
func NewClusterOperator ¶
func NewClusterOperator(name string) *ClusterOperator
func (*ClusterOperator) GetCondition ¶
func (c *ClusterOperator) GetCondition(conditionType configv1.ClusterStatusConditionType) *configv1.ClusterOperatorStatusCondition
func (*ClusterOperator) GetOperatorVersion ¶
func (c *ClusterOperator) GetOperatorVersion() string
func (*ClusterOperator) SetCondition ¶
func (c *ClusterOperator) SetCondition(condition *configv1.ClusterOperatorStatusCondition)
type ClusterOperatorReconciler ¶
type ClusterOperatorReconciler struct { *ReconcilerConfig // contains filtered or unexported fields }
func NewClusterOperatorReconciler ¶
func NewClusterOperatorReconciler(opts ...ReconcilerOption) (*ClusterOperatorReconciler, error)
func (*ClusterOperatorReconciler) SetupWithManager ¶
func (r *ClusterOperatorReconciler) SetupWithManager(mgr ctrl.Manager) error
type MutateFunc ¶
type MutateFunc func(context.Context, *ClusterOperator) error
func (MutateFunc) Mutate ¶
func (m MutateFunc) Mutate(ctx context.Context, co *ClusterOperator) error
type ReconcilerConfig ¶
type ReconcilerOption ¶
type ReconcilerOption func(*ReconcilerConfig)
func WithClient ¶
func WithClient(cli client.Client) ReconcilerOption
func WithLog ¶
func WithLog(log logr.Logger) ReconcilerOption
func WithName ¶
func WithName(name string) ReconcilerOption
func WithNamespace ¶
func WithNamespace(namespace string) ReconcilerOption
func WithNow ¶
func WithNow(now NowFunc) ReconcilerOption
func WithOLMOperator ¶
func WithOLMOperator() ReconcilerOption
func WithScheme ¶
func WithScheme(scheme *runtime.Scheme) ReconcilerOption
func WithSyncChannel ¶
func WithSyncChannel(syncCh <-chan error) ReconcilerOption
func WithTargetVersions ¶
func WithTargetVersions(targetVersions ...configv1.OperandVersion) ReconcilerOption
type SerialMutations ¶
type SerialMutations []Mutator
func (SerialMutations) Mutate ¶
func (s SerialMutations) Mutate(ctx context.Context, co *ClusterOperator) error
type SyncTracker ¶
type SyncTracker struct {
// contains filtered or unexported fields
}
func NewSyncTracker ¶
func NewSyncTracker(syncCh <-chan error, co *configv1.ClusterOperator) *SyncTracker
func (*SyncTracker) Events ¶
func (s *SyncTracker) Events() <-chan event.GenericEvent
func (*SyncTracker) SuccessfulSyncs ¶
func (s *SyncTracker) SuccessfulSyncs() int
func (*SyncTracker) TotalSyncs ¶
func (s *SyncTracker) TotalSyncs() int
Click to show internal directories.
Click to hide internal directories.