upgrade

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package upgrade manages the in-place upgrade of the instance manager

Index

Constants

View Source
const InstanceManagerPath = "/controller/manager"

InstanceManagerPath is the location of the instance manager executable

View Source
const UploadFolder = "/controller"

UploadFolder is the folder where the new version of the instance manager will be uploaded

Variables

View Source
var ErrorInvalidInstanceManagerBinary = errors.New("invalid instance manager binary")

ErrorInvalidInstanceManagerBinary is raised when upgrading to an instance manager which has not the correct hash

Functions

func FromReader

func FromReader(
	cancelFunc context.CancelFunc,
	exitedCondition concurrency.MultipleExecuted,
	typedClient client.Client,
	instance *postgres.Instance,
	r io.Reader,
) error

FromReader updates in place the binary of the instance manager, replacing itself with a new version with the new binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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