upgrades

package
v0.0.0-...-4f3658d Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 1 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 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.

Jump to

Keyboard shortcuts

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