upgrades

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package upgrades provides a framework for testing Kubernetes federation features before, during, and after different types of upgrades.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FederationUpgradeType

type FederationUpgradeType int

FederationUpgradeType represents different types of federation upgrades.

const (
	// FCPUpgrade indicates that federation control plane is being upgraded.
	FCPUpgrade FederationUpgradeType = iota

	// FederatedClustersUpgrade indicates that federated clusters are being upgraded.
	FederatedClustersUpgrade

	// FCPUpgradeFollowedByFederatedClustersUpgrade indicates that federation control plane is upgraded
	// followed by federated clusters upgrade.
	FCPUpgradeFollowedByFederatedClustersUpgrade

	// FederatedClustersUpgradeFollowedByFCPUpgrade indicates that federated clusters are upgraded
	// followed by federation control plane upgrade.
	FederatedClustersUpgradeFollowedByFCPUpgrade
)

type SimpleUpgradeTest added in v1.7.0

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

SimpleUpgradeTest validates that a federated resource remains propagated before and after a control plane upgrade

func (*SimpleUpgradeTest) Setup added in v1.7.0

Setup creates a resource and validates its propagation to member clusters

func (*SimpleUpgradeTest) Teardown added in v1.7.0

func (ut *SimpleUpgradeTest) Teardown(f *fedframework.Framework)

Teardown cleans up remaining resources

func (*SimpleUpgradeTest) Test added in v1.7.0

func (ut *SimpleUpgradeTest) Test(f *fedframework.Framework, done <-chan struct{}, upgrade FederationUpgradeType)

Test validates that a resource remains propagated post-upgrade

type Test

type Test interface {
	// Setup should create and verify whatever objects need to
	// exist before the upgrade disruption starts.
	Setup(f *fedframework.Framework)

	// Test will run during the upgrade. When the upgrade is
	// complete, done will be closed and final validation can
	// begin.
	Test(f *fedframework.Framework, done <-chan struct{}, upgrade FederationUpgradeType)

	// TearDown should clean up any objects that are created that
	// aren't already cleaned up by the framework.
	Teardown(f *fedframework.Framework)
}

Test is an interface for federation upgrade tests.

func SimpleUpgradeTests added in v1.7.0

func SimpleUpgradeTests() []Test

SimpleUpgradeTests collects simple upgrade tests for registered federated types

Jump to

Keyboard shortcuts

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