test

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateObject

func CreateObject(ctx context.Context, k8sClient client.Client, obj client.Object, key types.NamespacedName, timeout time.Duration, interval time.Duration)

func CreateServiceAccount

func CreateServiceAccount(ctx context.Context, k8sClient client.Client, name string, namespace string, timeout time.Duration, interval time.Duration)

func CreateServiceAccountSecret

func CreateServiceAccountSecret(ctx context.Context, k8sClient client.Client, serviceAccount *v1.ServiceAccount, timeout time.Duration, interval time.Duration)

func StringWithCharset

func StringWithCharset(length int, charset string) string

Types

type Environment

type Environment struct {
	Env        *envtest.Environment
	K8sManager ctrl.Manager
	Config     *rest.Config
	K8sClient  client.Client
}

func (Environment) Start

func (e Environment) Start()

Jump to

Keyboard shortcuts

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