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 TestCrd ¶
type TestCrd struct { Name string Kind string APIGroup string Versions []apiextensionsv1beta1.CustomResourceDefinitionVersion 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, apiVersions []apiextensionsv1beta1.CustomResourceDefinitionVersion, conversionWebhook *apiextensionsv1beta1.WebhookClientConfig) (*TestCrd, error)
CreateMultiVersionTestCRD creates a new CRD specifically for the calling test.
func CreateMultiVersionTestCRDWithV1Storage ¶
CreateMultiVersionTestCRDWithV1Storage creates a new CRD specifically for the calling test.
func CreateTestCRD ¶
CreateTestCRD creates a new CRD specifically for the calling test.
func (*TestCrd) GetAPIVersions ¶
GetAPIVersions returns the API versions served by the CRD.
func (*TestCrd) GetListName ¶
GetListName returns the name for the CRD list resources
func (*TestCrd) GetMetaName ¶
GetMetaName returns the metaname for the CRD.
func (*TestCrd) GetPluralName ¶
GetPluralName returns the plural form of the CRD name
func (*TestCrd) GetV1DynamicClient ¶
func (c *TestCrd) GetV1DynamicClient() dynamic.ResourceInterface
GetV1DynamicClient returns the dynamic client for v1.
func (*TestCrd) PatchSchema ¶
PatchSchema takes validation schema in YAML and patches it to given CRD