clusterurlmonitor

package
v0.0.0-...-b395935 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FinalizerKey string = "clusterurlmonitor.routemonitoroperator.monitoring.openshift.io/finalizer"
	// PrevFinalizerKey is here until migration to new key is done
	PrevFinalizerKey string = "clusterurlmonitor.monitoring.openshift.io/clusterurlmonitorcontroller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterUrlMonitorReconciler

type ClusterUrlMonitorReconciler 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
}

ClusterUrlMonitorReconciler reconciles a ClusterUrlMonitor object

func NewReconciler

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

func (*ClusterUrlMonitorReconciler) EnsureFinalizerSet

func (s *ClusterUrlMonitorReconciler) EnsureFinalizerSet(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)

func (*ClusterUrlMonitorReconciler) EnsureMonitorAndDependenciesAbsent

func (s *ClusterUrlMonitorReconciler) EnsureMonitorAndDependenciesAbsent(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)

Ensures that all dependencies related to a ClusterUrlMonitor are deleted

func (*ClusterUrlMonitorReconciler) EnsurePrometheusRuleExists

func (s *ClusterUrlMonitorReconciler) EnsurePrometheusRuleExists(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)

Takes care that right PrometheusRules for the defined ClusterURLMonitor are in place

func (*ClusterUrlMonitorReconciler) EnsureServiceMonitorExists

func (s *ClusterUrlMonitorReconciler) EnsureServiceMonitorExists(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)

Takes care that right ServiceMonitor for the defined ClusterURLMonitor are in place

func (*ClusterUrlMonitorReconciler) GetClusterDomain

func (s *ClusterUrlMonitorReconciler) GetClusterDomain(monitor v1alpha1.ClusterUrlMonitor) (string, error)

GetClusterDomain returns the baseDomain for a cluster, using the correct method based on it's type

func (*ClusterUrlMonitorReconciler) GetClusterUrlMonitor

GetClusterUrlMonitor return the ClusterUrlMonitor that is tested

func (*ClusterUrlMonitorReconciler) Reconcile

func (*ClusterUrlMonitorReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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