utils

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 25 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DeploymentName             string = "e2e-2048"
	HaDeploymentName           string = "e2e-2048-ha"
	NumberOfDeduplicationTests int    = 5
	NumberOfBulDeleteTests     int    = 30
)

Variables

This section is empty.

Functions

func BoolPter

func BoolPter(i bool) *bool

func ConfigureEnvironment

func ConfigureEnvironment(ctx context.Context) error

func ConfigureEnvironmentForPrTest

func ConfigureEnvironmentForPrTest(ctx context.Context) bool

func ConfigureadEnvironment

func ConfigureadEnvironment(ctx context.Context, k8s string) error

func CreateLdc

func CreateLdc(ctx context.Context) error

func CreateLdcForLdm added in v0.10.0

func CreateLdcForLdm(ctx context.Context) error

func DeleteAllPVC

func DeleteAllPVC(ctx context.Context) error

func DeleteAllSC

func DeleteAllSC(ctx context.Context) error

func ExecInPod

func ExecInPod(config *rest.Config, namespace, podName, command, containerName string) (string, string, error)

func GetAllPodEventsInDefaultNamespace added in v0.9.0

func GetAllPodEventsInDefaultNamespace(ctx context.Context)

Output the events of all pods under the default namespace

func GetAllPodInHwameistorNamespace added in v0.9.0

func GetAllPodInHwameistorNamespace(ctx context.Context) *corev1.PodList

return All Pod In Hwameistor Namespace

func GetAllPodLogsInHwameistorNamespace added in v0.9.0

func GetAllPodLogsInHwameistorNamespace(ctx context.Context)

return All Pod logs In Hwameistor Namespace

func GetPodEvents added in v0.9.0

func GetPodEvents(ctx context.Context, podList *corev1.PodList)

Output the events of the target podlist

func GetPodsByDeploy added in v0.9.0

func GetPodsByDeploy(ctx context.Context, namespace, deployName string) (*corev1.PodList, error)

Get the corresponding pod by deploy

func Int32Ptr

func Int32Ptr(i int32) *int32

func RunInLinux

func RunInLinux(cmd string) (string, error)

func StartAdRollback

func StartAdRollback(k8s string) error

func UninstallHelm

func UninstallHelm()

Types

This section is empty.

Jump to

Keyboard shortcuts

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