Documentation
¶
Index ¶
- func DeleteMetricsFor(kind, name, namespace string)
- func MustRegisterMetrics()
- func RecordMetrics(obj unstructured.Unstructured)
- func RecordOperatorInfoMetric(obj *fluxcdv1.OperatorInfo)
- func Registerer() prometheus.Registerer
- func RequestReportUpdate(ctx context.Context, kubeClient client.Client, ...) error
- func ResetMetrics(kind string)
- type FluxStatusReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMetricsFor ¶ added in v0.17.0
func DeleteMetricsFor(kind, name, namespace string)
func MustRegisterMetrics ¶ added in v0.7.0
func MustRegisterMetrics()
MustRegisterMetrics attempts to register the metrics collectors in the controller-runtime metrics registry.
func RecordMetrics ¶ added in v0.7.0
func RecordMetrics(obj unstructured.Unstructured)
RecordMetrics records the metrics for the given object.
func RecordOperatorInfoMetric ¶ added in v0.26.0
func RecordOperatorInfoMetric(obj *fluxcdv1.OperatorInfo)
RecordOperatorInfoMetric records the version information of the Flux Operator.
func Registerer ¶ added in v0.18.0
func Registerer() prometheus.Registerer
Registerer returns the metrics registerer.
func RequestReportUpdate ¶
func RequestReportUpdate(ctx context.Context, kubeClient client.Client, instance, manager, namespace string) error
RequestReportUpdate annotates the FluxReport object to trigger a reconciliation.
func ResetMetrics ¶ added in v0.7.0
func ResetMetrics(kind string)
ResetMetrics resets the metrics for the given kind.
Types ¶
type FluxStatusReporter ¶
FluxStatusReporter is responsible for computing the status report of the Flux installation.
func NewFluxStatusReporter ¶
func NewFluxStatusReporter(kubeClient client.Client, instance, manager, namespace string) *FluxStatusReporter
NewFluxStatusReporter creates a new FluxStatusReporter for the given instance and namespace.
func (*FluxStatusReporter) Compute ¶
func (r *FluxStatusReporter) Compute(ctx context.Context) (fluxcdv1.FluxReportSpec, error)
Compute generate the status report of the Flux installation.