globalroutediscovery

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

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 (*EnqueueRequestForRoutesMatchingService) Delete

Delete implements EventHandler

func (*EnqueueRequestForRoutesMatchingService) Generic

Generic implements EventHandler

func (*EnqueueRequestForRoutesMatchingService) Update

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

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

ManageSuccess will update the status of the CR and return a successful reconcile result

func (*GlobalRouteDiscoveryReconciler) Reconcile

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
}

type RouteReconciler

type RouteReconciler struct {
	Log logr.Logger
	util.ReconcilerBase
	// contains filtered or unexported fields
}

func (*RouteReconciler) Reconcile

func (r *RouteReconciler) Reconcile(context context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL