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 ¶
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 ¶
func (ut *SimpleUpgradeTest) Setup(f *fedframework.Framework)
Setup creates a resource and validates its propagation to member clusters
func (*SimpleUpgradeTest) Teardown ¶
func (ut *SimpleUpgradeTest) Teardown(f *fedframework.Framework)
Teardown cleans up remaining resources
func (*SimpleUpgradeTest) Test ¶
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 ¶
func SimpleUpgradeTests() []Test
SimpleUpgradeTests collects simple upgrade tests for registered federated types