Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasResource ¶
func HasResource(dc discovery.DiscoveryInterface, apiVersion, kind string) (bool, error)
HasResource takes an api version and a kind of a resource and checks if the resource is supported by the k8s api server. This function handles partial results from ServerGroupsAndResources(): "The returned group and resource lists might be non-nil with partial results even in the case of non-nil error."
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.