utils

package
v0.15.4 Latest Latest
Warning

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

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

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

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

func GetAllPodEventsInDefaultNamespace(ctx context.Context)

Output the events of all pods under the default namespace

func GetAllPodInHwameistorNamespace

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

return All Pod In Hwameistor Namespace

func GetAllPodLogsInHwameistorNamespace

func GetAllPodLogsInHwameistorNamespace(ctx context.Context)

return All Pod logs In Hwameistor Namespace

func GetPodEvents

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

Output the events of the target podlist

func GetPodsByDeploy

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