package crd
import "k8s.io/kubernetes/test/utils/crd"
Index ¶
Types ¶
type CleanCrdFn ¶
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 ¶
CreateTestCRD creates a new CRD specifically for the calling test.
Source Files ¶
crd_util.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.