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
func (ut *SimpleUpgradeTest) Setup(f *fedframework.Framework)
Setup creates a resource and validates its propagation to member clusters
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
Click to show internal directories.
Click to hide internal directories.