storage

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package storage implements an E2E storage test suite.

Index

Constants

View Source
const (

	// StatefulSetName is the name of the test StatefulSet.
	StatefulSetName = "liqo-storage"
)

Variables

This section is empty.

Functions

func DeployApp

func DeployApp(ctx context.Context, cluster *tester.ClusterContext, namespace string, replicas int32) error

DeployApp creates the namespace and deploys the applications. It returns an error in case of failures.

func ReadFromVolume added in v0.4.0

func ReadFromVolume(ctx context.Context,
	cl kubernetes.Interface, config *rest.Config, namespace string) (string, error)

ReadFromVolume reads a file from the volume of the StatefulSet.

func ScaleStatefulSet added in v0.4.0

func ScaleStatefulSet(ctx context.Context, t ginkgo.GinkgoTInterface, options *k8s.KubectlOptions,
	cl kubernetes.Interface, namespace string, replicas int32) error

ScaleStatefulSet scales the StatefulSet to the desired number of replicas.

func WaitDemoApp

func WaitDemoApp(t ginkgo.GinkgoTInterface, options *k8s.KubectlOptions, replicas int)

WaitDemoApp waits until each pod in the StatefulSet is ready.

func WriteToVolume added in v0.4.0

func WriteToVolume(ctx context.Context, cl kubernetes.Interface, config *rest.Config, namespace string) error

WriteToVolume writes a file to the volume of the StatefulSet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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