Documentation ¶
Index ¶
- func GetAPIResourceForGVK(context context.Context, GVK schema.GroupVersionKind) (apiresource *v1.APIResource, found bool, err error)
- func GetDiscoveryClient(context context.Context) (*discovery.DiscoveryClient, error)
- func IsGVKDefined(context context.Context, GVK schema.GroupVersionKind) (bool, error)
- func IsGVKNamespaced(context context.Context, GVK schema.GroupVersionKind) (bool, error)
- func IsUnstructuredDefined(context context.Context, obj *unstructured.Unstructured) (bool, error)
- func IsUnstructuredNamespaced(context context.Context, obj *unstructured.Unstructured) (bool, error)
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 ¶
IsAPIResourceAvailable checks of a give GroupVersionKind is available in the running apiserver needs context with restConfig and log
func IsGVKNamespaced ¶
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.
Click to show internal directories.
Click to hide internal directories.