kubernetes: k8s.io/kubernetes/test/e2e/upgrades/storage Index | Files

package storage

import "k8s.io/kubernetes/test/e2e/upgrades/storage"

Index

Package Files

persistent_volumes.go volume_mode.go

type PersistentVolumeUpgradeTest Uses

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

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

func (PersistentVolumeUpgradeTest) Name Uses

func (PersistentVolumeUpgradeTest) Name() string

Name returns the tracking name of the test.

func (*PersistentVolumeUpgradeTest) Setup Uses

func (t *PersistentVolumeUpgradeTest) Setup(f *framework.Framework)

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

func (*PersistentVolumeUpgradeTest) Teardown Uses

func (t *PersistentVolumeUpgradeTest) Teardown(f *framework.Framework)

Teardown cleans up any remaining resources.

func (*PersistentVolumeUpgradeTest) Test Uses

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 Uses

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 Uses

func (VolumeModeDowngradeTest) Name() string

Name returns the tracking name of the test.

func (*VolumeModeDowngradeTest) Setup Uses

func (t *VolumeModeDowngradeTest) Setup(f *framework.Framework)

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

func (*VolumeModeDowngradeTest) Skip Uses

func (t *VolumeModeDowngradeTest) Skip(upgCtx upgrades.UpgradeContext) bool

Skip returns true when this test can be skipped.

func (*VolumeModeDowngradeTest) Teardown Uses

func (t *VolumeModeDowngradeTest) Teardown(f *framework.Framework)

Teardown cleans up any remaining resources.

func (*VolumeModeDowngradeTest) Test Uses

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

Package storage imports 12 packages (graph) and is imported by 34 packages. Updated 2019-11-13. Refresh now. Tools for package owners.