discovery

package
v0.123.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL