clusterstate

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CNRAddress      = "https://quay.io"
	CNROrganization = "giantswarm"
	ChartChannel    = "stable"
	ChartName       = "e2e-app-chart"
	ChartNamespace  = "e2e-app"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts NotFoundError.

func IsWait

func IsWait(err error) bool

IsWait asserts waitError.

Types

type ClusterState

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

func New

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

func (*ClusterState) CheckTestAppIsInstalled

func (c *ClusterState) CheckTestAppIsInstalled(ctx context.Context) error

func (*ClusterState) InstallTestApp

func (c *ClusterState) InstallTestApp(ctx context.Context) error

func (*ClusterState) Test

func (c *ClusterState) Test(ctx context.Context) error

type Config

type Config struct {
	K8sClient       k8sclient.Interface
	LegacyFramework LegacyFramework
	Logger          micrologger.Logger
	Provider        provider.Interface
}

type Interface

type Interface interface {
	// Test executes the cluster state 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 the cluster state persists when rebooting and replacing the
	// master node.
	//
	//  - Install test app.
	//  - Check test app is installed.
	//  - Reboot master node.
	//  - Wait for API to be down.
	//  - Wait for cluster to be ready.
	//  - Check test app is installed.
	//  - Replace master node.
	//  - Wait for API to be down.
	//  - Wait for cluster to be ready.
	//  - Check test app is installed.
	//
	Test(ctx context.Context) error
}

type LegacyFramework

type LegacyFramework interface {
	// WaitForAPIUp waits for the currently configured tenant cluster Kubernetes
	// API to be down.
	WaitForAPIDown() error
	// WaitForGuestReady waits for the currently configured tenant cluster to be
	// ready.
	WaitForGuestReady(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