Documentation ¶
Index ¶
- Constants
- type ClusterUrlMonitorReconciler
- func (s *ClusterUrlMonitorReconciler) EnsureFinalizerSet(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)
- func (s *ClusterUrlMonitorReconciler) EnsureMonitorAndDependenciesAbsent(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)
- func (s *ClusterUrlMonitorReconciler) EnsurePrometheusRuleExists(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)
- func (s *ClusterUrlMonitorReconciler) EnsureServiceMonitorExists(clusterUrlMonitor v1alpha1.ClusterUrlMonitor) (utilreconcile.Result, error)
- func (s *ClusterUrlMonitorReconciler) GetClusterDomain(monitor v1alpha1.ClusterUrlMonitor) (string, error)
- func (s *ClusterUrlMonitorReconciler) GetClusterUrlMonitor(req ctrl.Request) (v1alpha1.ClusterUrlMonitor, utilreconcile.Result, error)
- func (r *ClusterUrlMonitorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ClusterUrlMonitorReconciler) SetupWithManager(mgr ctrl.Manager) error
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 ¶
func (s *ClusterUrlMonitorReconciler) GetClusterUrlMonitor(req ctrl.Request) (v1alpha1.ClusterUrlMonitor, utilreconcile.Result, error)
GetClusterUrlMonitor return the ClusterUrlMonitor that is tested
func (*ClusterUrlMonitorReconciler) SetupWithManager ¶
func (r *ClusterUrlMonitorReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.