test

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllPodsRunning    PodRunningState = true
	AllPodsNotRunning PodRunningState = false
	TestKeyValue                      = "test-key"
	TestCertValue                     = "test-cert"
	TestCaCertValue                   = "test-ca-cert"
)

Variables

This section is empty.

Functions

func BuildTLSSecret added in v1.11.2

func BuildTLSSecret(vdb *vapi.VerticaDB, name, key, cert, rootca string) *corev1.Secret

func CreateFakeTLSSecret added in v1.11.2

func CreateFakeTLSSecret(ctx context.Context, vdb *vapi.VerticaDB, c client.Client, name string)

func CreatePods

func CreatePods(ctx context.Context, c client.Client, vdb *vapi.VerticaDB, podRunningState PodRunningState)

func CreateStorageClass added in v1.7.0

func CreateStorageClass(ctx context.Context, c client.Client, allowVolumeExpansion bool)

func CreateSts

func CreateSts(ctx context.Context, c client.Client, vdb *vapi.VerticaDB, sc *vapi.Subcluster, offset int,
	scIndex int32, podRunningState PodRunningState)

func CreateSvcs

func CreateSvcs(ctx context.Context, c client.Client, vdb *vapi.VerticaDB)

func CreateVAS added in v1.5.0

func CreateVAS(ctx context.Context, c client.Client, vas *vapi.VerticaAutoscaler)

func CreateVDB

func CreateVDB(ctx context.Context, c client.Client, vdb *vapi.VerticaDB)

func DeletePods

func DeletePods(ctx context.Context, c client.Client, vdb *vapi.VerticaDB)

func DeleteSecret added in v1.11.2

func DeleteSecret(ctx context.Context, c client.Client, name string)

func DeleteStorageClass added in v1.7.0

func DeleteStorageClass(ctx context.Context, c client.Client)

func DeleteSts

func DeleteSts(ctx context.Context, c client.Client, vdb *vapi.VerticaDB, sc *vapi.Subcluster, offset int)

func DeleteSvcs

func DeleteSvcs(ctx context.Context, c client.Client, vdb *vapi.VerticaDB)

func DeleteVAS added in v1.5.0

func DeleteVAS(ctx context.Context, c client.Client, vas *vapi.VerticaAutoscaler)

func DeleteVDB

func DeleteVDB(ctx context.Context, c client.Client, vdb *vapi.VerticaDB)

func FakeIPForPod

func FakeIPForPod(scIndex, podIndex int32) string

func FakeIPv6ForPod

func FakeIPv6ForPod(scIndex, podIndex int32) string

func ScaleDownSubcluster

func ScaleDownSubcluster(ctx context.Context, c client.Client, vdb *vapi.VerticaDB, sc *vapi.Subcluster, newSize int32)

func SetPodStatus

func SetPodStatus(ctx context.Context, c client.Client, funcOffset int, podName types.NamespacedName,
	scIndex, podIndex int32, podRunningState PodRunningState)

Types

type PodRunningState

type PodRunningState bool

Jump to

Keyboard shortcuts

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