Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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.
Click to show internal directories.
Click to hide internal directories.