update

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsMissesDesiredStatus

func IsMissesDesiredStatus(err error) bool

IsMissesDesiredStatus asserts missesDesiredStatusError.

Types

type Config

type Config struct {
	Logger   micrologger.Logger
	Provider provider.Interface

	MaxWait time.Duration
}

type Interface

type Interface interface {
	// Test executes the update test using the configured provider implementation.
	// The provider implementation has to be aware of the guest cluster it has to
	// act against. The test processes the following steps to ensure updates
	// work.
	//
	//     - Lookup the current version bundle version.
	//     - Lookup the next version bundle version.
	//     - Stop the test if there is no current version bundle version.
	//     - Stop the test if there is no next version bundle version.
	//     - Update the guest cluster to next version.
	//     - Wait for the guest cluster to be completely updated.
	//
	Test(ctx context.Context) error
}

type Update

type Update struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Update, error)

func (*Update) Test

func (u *Update) Test(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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