routemonitor

package
v0.0.0-...-d580c8e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteMonitorReconciler

type RouteMonitorReconciler struct {
	Client           client.Client
	Ctx              context.Context
	Log              logr.Logger
	Scheme           *runtime.Scheme
	BlackBoxExporter controllers.BlackBoxExporterHandler
	ServiceMonitor   controllers.ServiceMonitorHandler
	Prom             controllers.PrometheusRuleHandler
	Common           controllers.MonitorResourceHandler
}

RouteMonitorReconciler reconciles a RouteMonitor object

func NewReconciler

func NewReconciler(mgr manager.Manager, blackboxExporterImage, blackboxExporterNamespace string, enablehypershift bool) *RouteMonitorReconciler

func (*RouteMonitorReconciler) EnsureFinalizerSet

func (s *RouteMonitorReconciler) EnsureFinalizerSet(routeMonitor v1alpha1.RouteMonitor) (utilreconcile.Result, error)

func (*RouteMonitorReconciler) EnsureMonitorAndDependenciesAbsent

func (r *RouteMonitorReconciler) EnsureMonitorAndDependenciesAbsent(routeMonitor v1alpha1.RouteMonitor) (utilreconcile.Result, error)

Ensures that all dependencies related to a RouteMonitor are deleted

func (*RouteMonitorReconciler) EnsurePrometheusRuleExists

func (r *RouteMonitorReconciler) EnsurePrometheusRuleExists(routeMonitor v1alpha1.RouteMonitor) (utilreconcile.Result, error)

Ensures that all PrometheusRules CR are created according to the RouteMonitor

func (*RouteMonitorReconciler) EnsureRouteURLExists

func (r *RouteMonitorReconciler) EnsureRouteURLExists(route routev1.Route, routeMonitor v1alpha1.RouteMonitor) (utilreconcile.Result, error)

EnsureRouteURLExists verifies that the .spec.RouteURL has the Route URL inside

func (*RouteMonitorReconciler) EnsureServiceMonitorExists

func (r *RouteMonitorReconciler) EnsureServiceMonitorExists(routeMonitor v1alpha1.RouteMonitor) (utilreconcile.Result, error)

Ensures that a ServiceMonitor is created from the RouteMonitor CR

func (*RouteMonitorReconciler) GetRoute

func (r *RouteMonitorReconciler) GetRoute(routeMonitor v1alpha1.RouteMonitor) (routev1.Route, error)

GetRoute returns the Route from the RouteMonitor spec

func (*RouteMonitorReconciler) GetRouteMonitor

GetRouteMonitor return the RouteMonitor that is tested

func (*RouteMonitorReconciler) Reconcile

func (r *RouteMonitorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*RouteMonitorReconciler) SetupWithManager

func (r *RouteMonitorReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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