Documentation ¶
Index ¶
- func NewMetricsService(namespace string, owner metav1.OwnerReference) *corev1.Service
- func NewPrometheusRuleSpec() *monitoringv1.PrometheusRuleSpec
- func NewServiceMonitor(namespace string, owner metav1.OwnerReference) *monitoringv1.ServiceMonitor
- type AlertRuleReconciler
- func (r *AlertRuleReconciler) EmptyObject() client.Object
- func (r *AlertRuleReconciler) GetFullResource() client.Object
- func (r *AlertRuleReconciler) Kind() string
- func (r *AlertRuleReconciler) ResourceName() string
- func (r *AlertRuleReconciler) UpdateExistingResource(ctx context.Context, cl client.Client, existing client.Object, ...) (client.Object, bool, error)
- type MetricReconciler
- type MonitoringReconciler
- func (r *MonitoringReconciler) Reconcile(req *common.HcoRequest, firstLoop bool) error
- func (r *MonitoringReconciler) ReconcileOneResource(req *common.HcoRequest, reconciler MetricReconciler, firstLoop bool) (client.Object, error)
- func (r *MonitoringReconciler) UpdateRelatedObjects(req *common.HcoRequest) error
- type RoleBindingReconciler
- func (r *RoleBindingReconciler) EmptyObject() client.Object
- func (r *RoleBindingReconciler) GetFullResource() client.Object
- func (r *RoleBindingReconciler) Kind() string
- func (r *RoleBindingReconciler) ResourceName() string
- func (r *RoleBindingReconciler) UpdateExistingResource(ctx context.Context, cl client.Client, resource client.Object, ...) (client.Object, bool, error)
- type RoleReconciler
- func (r *RoleReconciler) EmptyObject() client.Object
- func (r *RoleReconciler) GetFullResource() client.Object
- func (r *RoleReconciler) Kind() string
- func (r *RoleReconciler) ResourceName() string
- func (r *RoleReconciler) UpdateExistingResource(ctx context.Context, cl client.Client, resource client.Object, ...) (client.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsService ¶ added in v1.8.0
func NewMetricsService(namespace string, owner metav1.OwnerReference) *corev1.Service
func NewPrometheusRuleSpec ¶
func NewPrometheusRuleSpec() *monitoringv1.PrometheusRuleSpec
NewPrometheusRuleSpec creates PrometheusRuleSpec for alert rules
func NewServiceMonitor ¶ added in v1.8.0
func NewServiceMonitor(namespace string, owner metav1.OwnerReference) *monitoringv1.ServiceMonitor
Types ¶
type AlertRuleReconciler ¶
type AlertRuleReconciler struct {
// contains filtered or unexported fields
}
func (*AlertRuleReconciler) EmptyObject ¶ added in v1.8.0
func (r *AlertRuleReconciler) EmptyObject() client.Object
func (*AlertRuleReconciler) GetFullResource ¶ added in v1.8.0
func (r *AlertRuleReconciler) GetFullResource() client.Object
func (*AlertRuleReconciler) Kind ¶ added in v1.8.0
func (r *AlertRuleReconciler) Kind() string
func (*AlertRuleReconciler) ResourceName ¶ added in v1.8.0
func (r *AlertRuleReconciler) ResourceName() string
type MetricReconciler ¶ added in v1.8.0
type MonitoringReconciler ¶ added in v1.8.0
type MonitoringReconciler struct {
// contains filtered or unexported fields
}
func NewMonitoringReconciler ¶ added in v1.8.0
func NewMonitoringReconciler(ci hcoutil.ClusterInfo, cl client.Client, ee hcoutil.EventEmitter, scheme *runtime.Scheme) *MonitoringReconciler
func (*MonitoringReconciler) Reconcile ¶ added in v1.8.0
func (r *MonitoringReconciler) Reconcile(req *common.HcoRequest, firstLoop bool) error
func (*MonitoringReconciler) ReconcileOneResource ¶ added in v1.8.0
func (r *MonitoringReconciler) ReconcileOneResource(req *common.HcoRequest, reconciler MetricReconciler, firstLoop bool) (client.Object, error)
func (*MonitoringReconciler) UpdateRelatedObjects ¶ added in v1.8.0
func (r *MonitoringReconciler) UpdateRelatedObjects(req *common.HcoRequest) error
type RoleBindingReconciler ¶ added in v1.8.0
type RoleBindingReconciler struct {
// contains filtered or unexported fields
}
RoleBindingReconciler maintains an RBAC RoleBinding to allow Prometheus operator to read from HCO metric
func (*RoleBindingReconciler) EmptyObject ¶ added in v1.8.0
func (r *RoleBindingReconciler) EmptyObject() client.Object
func (*RoleBindingReconciler) GetFullResource ¶ added in v1.8.0
func (r *RoleBindingReconciler) GetFullResource() client.Object
func (*RoleBindingReconciler) Kind ¶ added in v1.8.0
func (r *RoleBindingReconciler) Kind() string
func (*RoleBindingReconciler) ResourceName ¶ added in v1.8.0
func (r *RoleBindingReconciler) ResourceName() string
type RoleReconciler ¶ added in v1.8.0
type RoleReconciler struct {
// contains filtered or unexported fields
}
RoleReconciler maintains an RBAC Role to allow Prometheus operator to read from HCO metric
func (*RoleReconciler) EmptyObject ¶ added in v1.8.0
func (r *RoleReconciler) EmptyObject() client.Object
func (*RoleReconciler) GetFullResource ¶ added in v1.8.0
func (r *RoleReconciler) GetFullResource() client.Object
func (*RoleReconciler) Kind ¶ added in v1.8.0
func (r *RoleReconciler) Kind() string
func (*RoleReconciler) ResourceName ¶ added in v1.8.0
func (r *RoleReconciler) ResourceName() string
Click to show internal directories.
Click to hide internal directories.