Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServicePortsFromEndpoint ¶
func GetServicePortsFromEndpoint(endpoints []monitoringv1.Endpoint) []corev1.ServicePort
Types ¶
type EndpointSorter ¶
type EndpointSorter []monitoringv1.Endpoint
func (EndpointSorter) Len ¶
func (e EndpointSorter) Len() int
func (EndpointSorter) Less ¶
func (e EndpointSorter) Less(i, j int) bool
func (EndpointSorter) Swap ¶
func (e EndpointSorter) Swap(i, j int)
type MetricsServiceController ¶
type MetricsServiceController struct {
// contains filtered or unexported fields
}
The MetricsServiceController maintains the relation between workload, service monitor and service. The service monitor will create services that point to workloads or pods with selector. The service monitor owns those service and should delete with the object.
func (*MetricsServiceController) ReconcileServiceMonitor ¶
func (c *MetricsServiceController) ReconcileServiceMonitor(w *util.Workload) error
ReconcileServiceMonitor Workloads to ServiceMonitor
Click to show internal directories.
Click to hide internal directories.