utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectWithKubeconfig

func ConnectWithKubeconfig(
	t *testing.T,
	ctx context.Context,
	client ctrlruntimeclient.Client,
	namespace string,
	kubeconfigName string,
) ctrlruntimeclient.Client

func ConnectWithRootShardProxy added in v0.2.0

func ConnectWithRootShardProxy(
	t *testing.T,
	ctx context.Context,
	client ctrlruntimeclient.Client,
	rootShard *operatorv1alpha1.RootShard,
	cluster logicalcluster.Path,
) ctrlruntimeclient.Client

func CreateSelfDestructingNamespace

func CreateSelfDestructingNamespace(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, name string) *corev1.Namespace

func DeployEtcd

func DeployEtcd(t *testing.T, name, namespace string) string

func DeployFrontProxy

func DeployFrontProxy(ctx context.Context, t *testing.T, client ctrlruntimeclient.Client, namespace string, rootShardName string, externalHostname string, patches ...func(*operatorv1alpha1.FrontProxy)) operatorv1alpha1.FrontProxy

func DeployRootShard

func DeployRootShard(ctx context.Context, t *testing.T, client ctrlruntimeclient.Client, namespace string, externalHostname string, patches ...func(*operatorv1alpha1.RootShard)) operatorv1alpha1.RootShard

func DeployShard

func DeployShard(ctx context.Context, t *testing.T, client ctrlruntimeclient.Client, namespace, name, rootShard string, patches ...func(*operatorv1alpha1.Shard)) operatorv1alpha1.Shard

func GetKubeClient

func GetKubeClient(t *testing.T) ctrlruntimeclient.Client

func GetSelfSignedIssuerRef

func GetSelfSignedIssuerRef() *operatorv1alpha1.ObjectReference

func NewScheme added in v0.2.0

func NewScheme(t *testing.T) *runtime.Scheme

func SelfDestuctingPortForward

func SelfDestuctingPortForward(
	t *testing.T,
	ctx context.Context,
	namespace string,
	target string,
	targetPort int,
	localPort int,
)

func WaitForPods

func WaitForPods(t *testing.T, ctx context.Context, client ctrlruntimeclient.Client, listOpts ...ctrlruntimeclient.ListOption)

Types

This section is empty.

Jump to

Keyboard shortcuts

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