crd

package
v1.15.10 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanCrdFn

type CleanCrdFn func() error

CleanCrdFn declares the clean up function needed to remove the CRD

type Option added in v1.15.0

Option is a modifier for a CRD object used to customize CreateMultiVersionTestCRD and CreateTestCRD.

type TestCrd

type TestCrd struct {
	APIExtensionClient *crdclientset.Clientset
	Crd                *apiextensionsv1beta1.CustomResourceDefinition
	DynamicClients     map[string]dynamic.ResourceInterface
	CleanUp            CleanCrdFn
}

TestCrd holds all the pieces needed to test with the CRD

func CreateMultiVersionTestCRD

func CreateMultiVersionTestCRD(f *framework.Framework, group string, opts ...Option) (*TestCrd, error)

CreateMultiVersionTestCRD creates a new CRD specifically for the calling test.

func CreateTestCRD

func CreateTestCRD(f *framework.Framework, opts ...Option) (*TestCrd, error)

CreateTestCRD creates a new CRD specifically for the calling test.

Jump to

Keyboard shortcuts

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