Documentation
¶
Index ¶
- func CreateDynakube(t *testing.T, ctx context.Context, clt client.Client, dk *dynakube.DynaKube)
- func CreateKubernetesObject(t *testing.T, ctx context.Context, clt client.Client, object client.Object)
- func CreateNamespace(t *testing.T, ctx context.Context, clt client.Client, namespace string)
- func SetupTestEnvironment(tb testing.TB, opts ...TestEnvOpt) client.Client
- func SetupWebhookTestEnvironment(t *testing.T, webhookOptions envtest.WebhookInstallOptions, ...) client.Client
- type TestEnvOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDynakube ¶
func CreateKubernetesObject ¶
func CreateNamespace ¶
func SetupTestEnvironment ¶
func SetupTestEnvironment(tb testing.TB, opts ...TestEnvOpt) client.Client
Types ¶
type TestEnvOpt ¶ added in v1.8.0
type TestEnvOpt func(*envtest.Environment)
func DisableAttachControlPlaneOutput ¶ added in v1.8.0
func DisableAttachControlPlaneOutput() TestEnvOpt
Click to show internal directories.
Click to hide internal directories.