Back to godoc.org
k8s.io/kubernetes / test / utils / crd

package crd

v1.18.5
Latest Go to latest
Published: Jun 26, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Index

type CleanCrdFn

type CleanCrdFn func() error

CleanCrdFn declares the clean up function needed to remove the CRD

type Option

type Option func(crd *apiextensionsv1.CustomResourceDefinition)

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

type TestCrd

type TestCrd struct {
	APIExtensionClient *crdclientset.Clientset
	Crd                *apiextensionsv1.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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier