Documentation ¶
Index ¶
- type EnqueueRequestForRoutesMatchingService
- func (e *EnqueueRequestForRoutesMatchingService) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestForRoutesMatchingService) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestForRoutesMatchingService) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *EnqueueRequestForRoutesMatchingService) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
- type GlobalRouteDiscoveryReconciler
- func (r *GlobalRouteDiscoveryReconciler) IsInitialized(obj metav1.Object) bool
- func (r *GlobalRouteDiscoveryReconciler) ManageError(context context.Context, instance *redhatcopv1alpha1.GlobalRouteDiscovery, ...) (reconcile.Result, error)
- func (r *GlobalRouteDiscoveryReconciler) ManageSuccess(context context.Context, instance *redhatcopv1alpha1.GlobalRouteDiscovery) (reconcile.Result, error)
- func (r *GlobalRouteDiscoveryReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GlobalRouteDiscoveryReconciler) SetupWithManager(mgr ctrl.Manager) error
- type RouteInfo
- type RouteReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnqueueRequestForRoutesMatchingService ¶
type EnqueueRequestForRoutesMatchingService struct { *RouteReconciler Log logr.Logger }
func (*EnqueueRequestForRoutesMatchingService) Create ¶
func (e *EnqueueRequestForRoutesMatchingService) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
func (*EnqueueRequestForRoutesMatchingService) Delete ¶
func (e *EnqueueRequestForRoutesMatchingService) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete implements EventHandler
func (*EnqueueRequestForRoutesMatchingService) Generic ¶
func (e *EnqueueRequestForRoutesMatchingService) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic implements EventHandler
func (*EnqueueRequestForRoutesMatchingService) Update ¶
func (e *EnqueueRequestForRoutesMatchingService) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
type GlobalRouteDiscoveryReconciler ¶
type GlobalRouteDiscoveryReconciler struct { util.ReconcilerBase Log logr.Logger // contains filtered or unexported fields }
GlobalRouteDiscoveryReconciler reconciles a GlobalRouteDiscovery object
func (*GlobalRouteDiscoveryReconciler) IsInitialized ¶
func (r *GlobalRouteDiscoveryReconciler) IsInitialized(obj metav1.Object) bool
IsInitialized initislizes the instance, currently is simply adds a finalizer.
func (*GlobalRouteDiscoveryReconciler) ManageError ¶
func (r *GlobalRouteDiscoveryReconciler) ManageError(context context.Context, instance *redhatcopv1alpha1.GlobalRouteDiscovery, issue error) (reconcile.Result, error)
ManageError manage error sets an error status in the CR and fires an event, finally it returns the error so the operator can re-attempt
func (*GlobalRouteDiscoveryReconciler) ManageSuccess ¶
func (r *GlobalRouteDiscoveryReconciler) ManageSuccess(context context.Context, instance *redhatcopv1alpha1.GlobalRouteDiscovery) (reconcile.Result, error)
ManageSuccess will update the status of the CR and return a successful reconcile result
func (*GlobalRouteDiscoveryReconciler) Reconcile ¶
func (r *GlobalRouteDiscoveryReconciler) Reconcile(context 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. TODO(user): Modify the Reconcile function to compare the state specified by the GlobalRouteDiscovery object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*GlobalRouteDiscoveryReconciler) SetupWithManager ¶
func (r *GlobalRouteDiscoveryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type RouteInfo ¶
type RouteInfo struct { Route routev1.Route Service corev1.Service ReadinessCheck *corev1.Probe LoadBalancigPolicy redhatcopv1alpha1.LoadBalancingPolicy ClusterReference redhatcopv1alpha1.ClusterReference TTL int }