FakeDiscovery implements discovery.DiscoveryInterface and sometimes calls testing.Fake.Invoke with an action, but doesn't respect the return value if any. There is a way to fake static values like ServerVersion by using the Faked... fields on the struct.
OpenAPISchema retrieves and parses the swagger API schema the server supports.
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
ServerGroups returns the supported groups, with information like supported versions and the preferred version.
ServerPreferredNamespacedResources returns the supported namespaced resources with the version preferred by the server.
ServerPreferredResources returns the supported resources with the version preferred by the server.
ServerResources returns the supported resources for all groups and versions.
func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
ServerResourcesForGroupVersion returns the supported resources for a group and version.
ServerVersion retrieves and parses the server's version.