Documentation
¶
Index ¶
- func CheckSingletonServices(operator string) bool
- func NewReferencePredicates() predicate.Funcs
- type Reconciler
- func (r *Reconciler) ExecuteOptionalFields(ctx context.Context, resTemplate *unstructured.Unstructured, ...) error
- func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reconcileErr error)
- func (r *Reconciler) ResourceForKind(gvk schema.GroupVersionKind, namespace string) (*schema.GroupVersionResource, error)
- func (r *Reconciler) ServiceStatusIsReady(ctx context.Context, requestInstance *operatorv1alpha1.OperandRequest) (bool, error)
- func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSingletonServices ¶
func NewReferencePredicates ¶ added in v4.5.9
NewReferencePredicates creates predicates for filtering reference resources. Only watches ConfigMaps and Secrets that have the ODLM watched label set to "true" and do not have the OpbiTypeLabel set to "copy". This prevents caching all ConfigMaps/Secrets in watched namespaces.
Types ¶
type Reconciler ¶
type Reconciler struct {
*deploy.ODLMOperator
StepSize int
Mutex sync.Mutex
}
Reconciler reconciles a OperandRequest object
func (*Reconciler) ExecuteOptionalFields ¶
func (r *Reconciler) ExecuteOptionalFields(ctx context.Context, resTemplate *unstructured.Unstructured, optionalFields *[]operatorv1alpha1.OptionalField) error
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reconcileErr error)
Reconcile reads that state of the cluster for a OperandRequest object and makes changes based on the state read and what is in the OperandRequest.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*Reconciler) ResourceForKind ¶
func (r *Reconciler) ResourceForKind(gvk schema.GroupVersionKind, namespace string) (*schema.GroupVersionResource, error)
func (*Reconciler) ServiceStatusIsReady ¶
func (r *Reconciler) ServiceStatusIsReady(ctx context.Context, requestInstance *operatorv1alpha1.OperandRequest) (bool, error)
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds OperandRequest controller to the manager.