storage

package
v1.21.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 15 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentVolumeUpgradeTest

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

PersistentVolumeUpgradeTest test that a pv is available before and after a cluster upgrade.

func (PersistentVolumeUpgradeTest) Name

Name returns the tracking name of the test.

func (*PersistentVolumeUpgradeTest) Setup

Setup creates a pv and then verifies that a pod can consume it. The pod writes data to the volume.

func (*PersistentVolumeUpgradeTest) Teardown

Teardown cleans up any remaining resources.

func (*PersistentVolumeUpgradeTest) Test

func (t *PersistentVolumeUpgradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)

Test waits for the upgrade to complete, and then verifies that a pod can still consume the pv and that the volume data persists.

type VolumeModeDowngradeTest added in v1.12.8

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

VolumeModeDowngradeTest tests that a VolumeMode Block PV is not mistakenly formatted and mounted like a nil/Filesystem PV after a downgrade to a version where the BlockVolume feature is disabled

func (VolumeModeDowngradeTest) Name added in v1.12.8

Name returns the tracking name of the test.

func (*VolumeModeDowngradeTest) Setup added in v1.12.8

Setup creates a block pv and then verifies that a pod can consume it. The pod writes data to the volume.

func (*VolumeModeDowngradeTest) Skip added in v1.12.8

Skip returns true when this test can be skipped.

func (*VolumeModeDowngradeTest) Teardown added in v1.12.8

Teardown cleans up any remaining resources.

func (*VolumeModeDowngradeTest) Test added in v1.12.8

func (t *VolumeModeDowngradeTest) Test(f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)

Test waits for the downgrade to complete, and then verifies that a pod can no longer consume the pv as it is not mapped nor mounted into the pod

Jump to

Keyboard shortcuts

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