utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePodsWithLabelDeletedEventually

func ArePodsWithLabelDeletedEventually(
	ctx context.Context,
	namespace string,
	coreClient *corev1client.CoreV1Client,
	labelSelector string,
	retryCount int,
	interval time.Duration) bool

ArePodsWithLabelDeletedEventually assert Pod deletion

func ArePodsWithLabelRunningEventually

func ArePodsWithLabelRunningEventually(
	ctx context.Context,
	namespace string,
	coreClient *corev1client.CoreV1Client,
	labelSelector string,
	retryCount int,
	interval time.Duration) bool

ArePodsWithLabelRunningEventually asserts Pod successfully reaching Running state

func DeleteCRDs

func DeleteCRDs(ctx context.Context, t *testing.T, cfg *rest.Config, crdNames []string) error

DeleteCRDs is there to delete CRDs especially when helm wouldn't after a 'helm uninstall'. Ref: https://helm.sh/docs/topics/charts/#limitations-on-crds

func NewHelmDefaultConfig

func NewHelmDefaultConfig(t *testing.T, releaseName, releaseNamespace, kubeconfigPath string) *action.Configuration

NewHelmDefaultConfig generates a default action Configuration (for use with helm commands)

func Sed

func Sed(t *testing.T, old, new, filePath string) string

Sed basically does 'sed'-like string replacement on files and returns a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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