k8s

package
v0.0.0-...-2b985cc Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TunnelForReceiverMock

func TunnelForReceiverMock(
	ctx context.Context,
	t *testing.T,
) *terrak8s.Tunnel

TunnelForReceiverMock creates a tunnel with port forward to receiver-mock service.

func WaitUntilPodsAvailable

func WaitUntilPodsAvailable(
	t *testing.T,
	options *k8s.KubectlOptions,
	filters v1.ListOptions,
	minPods int,
	sleepDuration time.Duration,
	sleepBetweenRetries time.Duration,
)

Same as WaitUntilPodsAvailableE, but terminates the test instead of returning an error.

func WaitUntilPodsAvailableE

func WaitUntilPodsAvailableE(
	t *testing.T,
	options *k8s.KubectlOptions,
	filters v1.ListOptions,
	minPods int,
	sleepDuration time.Duration,
	sleepBetweenRetries time.Duration,
) error

WaitUntilPodsAvailableE waits until pods satisfying the provided filters are all available. Availability is defined via terrastruct's k8s.IsPodAvailable function, which requires the Pod to be Running and all of its containers to be started and ready. Technically this condition is satisfied if no Pods exists, the minPods argument helps with this edge case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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