discoveryclient

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIResourceForGVK

func GetAPIResourceForGVK(context context.Context, GVK schema.GroupVersionKind) (apiresource *v1.APIResource, found bool, err error)

func GetDiscoveryClient

func GetDiscoveryClient(context context.Context) (*discovery.DiscoveryClient, error)

GetDiscoveryClient returns a discovery client for the current reconciler needs context with restConfig

func IsGVKDefined

func IsGVKDefined(context context.Context, GVK schema.GroupVersionKind) (bool, error)

IsAPIResourceAvailable checks of a give GroupVersionKind is available in the running apiserver needs context with restConfig and log

func IsGVKNamespaced

func IsGVKNamespaced(context context.Context, GVK schema.GroupVersionKind) (bool, error)

IsGVKNamespaced checks whether the passed GVK os namespaced needs context with restConfig and log

func IsUnstructuredDefined

func IsUnstructuredDefined(context context.Context, obj *unstructured.Unstructured) (bool, error)

IsUnstructuredDefined checks whether the content of a unstructured is defined in the current cluster needs context with restConfig and log

func IsUnstructuredNamespaced

func IsUnstructuredNamespaced(context context.Context, obj *unstructured.Unstructured) (bool, error)

IsUnstructuredDefined checks whether the content of a unstructured is defined in the current cluster needs context with restConfig and log

Types

This section is empty.

Jump to

Keyboard shortcuts

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