Documentation ¶
Overview ¶
Package upgrade handles the upgrade routine from one OpenTelemetry Collector to the next.
Index ¶
Constants ¶
View Source
const RecordBufferSize int = 100
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 ¶
func RemoveFeatureGate ¶ added in v0.105.0
RemoveFeatureGate removes a feature gate from args.
func TAUnifyEnvVarExpansion ¶ added in v0.105.0
func TAUnifyEnvVarExpansion(otelcol *v1beta1.OpenTelemetryCollector)
TAUnifyEnvVarExpansion disables confmap.unifyEnvVarExpansion featuregate on collector instances if a prometheus receiver is configured. NOTE: We need this for now until 0.105.0 is out with this fix: https://github.com/open-telemetry/opentelemetry-collector/commit/637b1f42fcb7cbb7ef8a50dcf41d0a089623a8b7
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(_ context.Context, otelcol v1beta1.OpenTelemetryCollector) (v1beta1.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.