Documentation ¶
Overview ¶
Package upgrade handles the upgrade routine from one OpenTelemetry Collector to the next.
Index ¶
Constants ¶
View Source
const RecordBufferSize int = 10
Variables ¶
View Source
var ( // Latest represents the latest version that we need to upgrade. This is not necessarily the latest known version. Latest = versions[len(versions)-1] )
Functions ¶
This section is empty.
Types ¶
type VersionUpgrade ¶ added in v0.44.0
type VersionUpgrade struct { Client client.Client Recorder record.EventRecorder Version version.Version Log logr.Logger }
func (VersionUpgrade) ManagedInstance ¶ added in v0.44.0
func (u VersionUpgrade) ManagedInstance(ctx context.Context, otelcol v1alpha1.OpenTelemetryCollector) (v1alpha1.OpenTelemetryCollector, error)
ManagedInstance performs the necessary changes to bring the given otelcol instance to the current version.
func (VersionUpgrade) ManagedInstances ¶ added in v0.44.0
func (u VersionUpgrade) ManagedInstances(ctx context.Context) error
ManagedInstances finds all the otelcol instances for the current operator and upgrades them, if necessary.
Click to show internal directories.
Click to hide internal directories.