reconciliation

package
v1.1.0-beta27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

the Recorder logs and records metrics for reconciles

func NewRecorder

func NewRecorder(
	counterOpts prometheus.CounterOpts,
	inputName string,
	inputGvks []schema.GroupVersionKind,
	outputName string,
	outputGvks []schema.GroupVersionKind,
) *Recorder

NOTE: Only one Recorder should be initialized for each unique metric.

func (*Recorder) RecordReconcileResult

func (r *Recorder) RecordReconcileResult(
	ctx context.Context,
	input resource.ClusterSnapshot,
	output resource.ClusterSnapshot,
	success bool,
)

record a reconcile result

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL