Documentation
¶
Index ¶
- type CustomMatcher
- type EnqueueRequestsForCustomIndexField
- func (e *EnqueueRequestsForCustomIndexField) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestsForCustomIndexField) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestsForCustomIndexField) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestsForCustomIndexField) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
- type ImageStreamMatcher
- type RuntimeComponentReconciler
- type RuntimeOperationReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomMatcher ¶
type CustomMatcher interface {
Match(metav1.Object) ([]appstacksv1beta2.RuntimeComponent, error)
}
CustomMatcher is an interface for matching apps that satisfy a custom logic
type EnqueueRequestsForCustomIndexField ¶
type EnqueueRequestsForCustomIndexField struct { handler.Funcs Matcher CustomMatcher }
EnqueueRequestsForCustomIndexField enqueues reconcile Requests Runtime Components if the app is relying on the modified resource
func (*EnqueueRequestsForCustomIndexField) Create ¶
func (e *EnqueueRequestsForCustomIndexField) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create implements EventHandler
func (*EnqueueRequestsForCustomIndexField) Delete ¶
func (e *EnqueueRequestsForCustomIndexField) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete implements EventHandler
func (*EnqueueRequestsForCustomIndexField) Generic ¶
func (e *EnqueueRequestsForCustomIndexField) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic implements EventHandler
func (*EnqueueRequestsForCustomIndexField) Update ¶
func (e *EnqueueRequestsForCustomIndexField) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Update implements EventHandler
type ImageStreamMatcher ¶
ImageStreamMatcher implements CustomMatcher for Image Streams
func (*ImageStreamMatcher) Match ¶
func (i *ImageStreamMatcher) Match(imageStreamTag metav1.Object) ([]appstacksv1beta2.RuntimeComponent, error)
Match returns all applications using the input ImageStreamTag
type RuntimeComponentReconciler ¶
type RuntimeComponentReconciler struct { appstacksutils.ReconcilerBase Log logr.Logger // contains filtered or unexported fields }
RuntimeComponentReconciler reconciles a RuntimeComponent object
func (*RuntimeComponentReconciler) Reconcile ¶
func (r *RuntimeComponentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*RuntimeComponentReconciler) SetupWithManager ¶
func (r *RuntimeComponentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager initializes reconciler
type RuntimeOperationReconciler ¶
type RuntimeOperationReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder RestConfig *rest.Config }
RuntimeOperationReconciler reconciles a RuntimeOperation object
func (*RuntimeOperationReconciler) SetupWithManager ¶
func (r *RuntimeOperationReconciler) SetupWithManager(mgr ctrl.Manager) error