Documentation ¶
Overview ¶
Package discoverytest contains a fake implementation of the API discovery mechanism seeded with the types used in Config Sync.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRDsToAPIGroupResources ¶
func CRDsToAPIGroupResources(crds []*v1beta1.CustomResourceDefinition) []*restmapper.APIGroupResources
CRDsToAPIGroupResources converts a list of CRDs to the corresponding APIGroupResources the server would return.
As-is assumes each CRD is a different APIGroup. Don't bother fixing unless you need to test a case where you need to sync multiple CRDs for the same APIGroup.
func Client ¶
func Client(extraResources []*restmapper.APIGroupResources) utildiscovery.ServerResourcer
Client returns a new test DiscoveryClient that has mappings for test and provided resources.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.