Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrometheusRuleSpec ¶
func NewPrometheusRuleSpec() *monitoringv1.PrometheusRuleSpec
NewPrometheusRuleSpec creates PrometheusRuleSpec for alert rules
Types ¶
type AlertRuleReconciler ¶
type AlertRuleReconciler struct {
// contains filtered or unexported fields
}
func NewAlertRuleReconciler ¶
func NewAlertRuleReconciler(cl client.Client, ci hcoutil.ClusterInfo, ee hcoutil.EventEmitter, scheme *runtime.Scheme) *AlertRuleReconciler
NewAlertRuleReconciler creates new AlertRuleReconciler instance and returns a pointer to it.
func (*AlertRuleReconciler) Reconcile ¶
func (r *AlertRuleReconciler) Reconcile(req *common.HcoRequest) error
Reconcile makes sure that the required PrometheusRule resource is present with the required fields
func (*AlertRuleReconciler) UpdateRelatedObjects ¶
func (r *AlertRuleReconciler) UpdateRelatedObjects(req *common.HcoRequest) error
Click to show internal directories.
Click to hide internal directories.