upgrade

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

The upgrade process in this package is based on opentelemetry-operator's upgrade process, licensed under the Apache License, Version 2.0. https://github.com/open-telemetry/opentelemetry-operator/tree/0a92a119f5acdcd775169e946638217ff5c78a1d/pkg/collector/upgrade

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upgrade

type Upgrade struct {
	Client     client.Client
	Recorder   record.EventRecorder
	CtrlConfig configv1alpha1.ProjectConfig
	Version    version.Version
	Log        logr.Logger
}

Upgrade contains required objects to perform version upgrades.

func (Upgrade) Upgrade added in v0.10.0

func (u Upgrade) Upgrade(ctx context.Context, original UpgradeableCR) (UpgradeableCR, error)

Upgrade performs an upgrade of an UpgradeableCR in the cluster.

type UpgradeableCR added in v0.10.0

type UpgradeableCR interface {
	client.Object
	GetOperatorVersion() string
	SetOperatorVersion(v string)
	SetTempoVersion(v string)
	GetStatus() any
	SetStatus(s any)
}

UpgradeableCR defines functions required for upgrading a managed Custom Resource (TempoStack, TempoMonolithic).

Jump to

Keyboard shortcuts

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