package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

CrdExistsInDiscovery checks to see if the given CRD exists in discovery at all served versions.
CreateTestCRDs creates the given CRDs, any failure causes the test to Fatal.
GetCustomResourceDefinitionData returns the resource definitions that back the custom resources included in GetEtcdStorageData.
GetEtcdStorageData returns etcd data for all persisted objects at the latest release version.
GetEtcdStorageDataForNamespace returns etcd data for all persisted objects at the latest release version.
GetEtcdStorageDataForNamespaceServedAt returns etcd data for all persisted objects at a particular release version.
GetEtcdStorageDataServedAt returns etcd data for all persisted objects at a particular release version.
GetResources fetches the Resources associated with serverResources that support get and create.
GetSupportedEmulatedVersions provides the list of supported emulated versions in the etcd data.
JSONToUnstructured converts a JSON stub to unstructured.Unstructured and returns a dynamic resource client that can be used to interact with it.
StartRealAPIServerOrDie starts an API server that is appropriate for use in tests that require one of every resource.

# Structs

APIServer represents a running API server that is ready for use The Cleanup func must be deferred to prevent resource leaks.
Prerequisite contains information required to create a resource (but not verify it).
Resource contains REST mapping information for a specific resource and extra metadata such as delete collection support.
StorageData contains information required to create an object and verify its storage in etcd It must be paired with a specific resource.