import "k8s.io/kubernetes/test/e2e/upgrades/apps"
daemonsets.go deployments.go job.go replicasets.go statefulset.go
type DaemonSetUpgradeTest struct {
// contains filtered or unexported fields
}
DaemonSetUpgradeTest tests that a DaemonSet is running before and after a cluster upgrade.
func (DaemonSetUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *DaemonSetUpgradeTest) Setup(f *framework.Framework)
Setup creates a DaemonSet and verifies that it's running
func (t *DaemonSetUpgradeTest) Teardown(f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *DaemonSetUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits until the upgrade has completed and then verifies that the DaemonSet is still running
type DeploymentUpgradeTest struct {
// contains filtered or unexported fields
}
DeploymentUpgradeTest tests that a deployment is using the same replica sets before and after a cluster upgrade.
func (DeploymentUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *DeploymentUpgradeTest) Setup(f *framework.Framework)
Setup creates a deployment and makes sure it has a new and an old replicaset running.
func (t *DeploymentUpgradeTest) Teardown(f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *DeploymentUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test checks whether the replicasets for a deployment are the same after an upgrade.
type JobUpgradeTest struct {
// contains filtered or unexported fields
}
JobUpgradeTest is a test harness for batch Jobs.
func (JobUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *JobUpgradeTest) Setup(f *framework.Framework)
Setup starts a Job with a parallelism of 2 and 2 completions running.
func (t *JobUpgradeTest) Teardown(f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *JobUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test verifies that the Jobs Pods are running after the an upgrade
ReplicaSetUpgradeTest tests that a replicaset survives upgrade.
func (ReplicaSetUpgradeTest) Name() string
Name returns the tracking name of the test.
func (r *ReplicaSetUpgradeTest) Setup(f *framework.Framework)
Setup creates a ReplicaSet and makes sure it's replicas ready.
func (r *ReplicaSetUpgradeTest) Teardown(f *framework.Framework)
Teardown cleans up any remaining resources.
func (r *ReplicaSetUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test checks whether the replicasets are the same after an upgrade.
type StatefulSetUpgradeTest struct {
// contains filtered or unexported fields
}
StatefulSetUpgradeTest implements an upgrade test harness for StatefulSet upgrade testing.
func (StatefulSetUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *StatefulSetUpgradeTest) Setup(f *framework.Framework)
Setup creates a StatefulSet and a HeadlessService. It verifies the basic SatefulSet properties
func (StatefulSetUpgradeTest) Skip(upgCtx upgrades.UpgradeContext) bool
Skip returns true when this test can be skipped.
func (t *StatefulSetUpgradeTest) Teardown(f *framework.Framework)
Teardown deletes all StatefulSets
func (t *StatefulSetUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for the upgrade to complete and verifies the StatefulSet basic functionality
Package upgrades imports 23 packages (graph) and is imported by 83 packages. Updated 2020-05-04. Refresh now. Tools for package owners.