upgrade

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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