Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsKnownObjectType ¶ added in v0.15.0
func IsNamespacedObject ¶
func ObjectKeyFromObject ¶
func ObjectKeyFromObject(r runtime.Object, di discovery.CachedDiscoveryInterface) (client.ObjectKey, error)
ObjectKeyFromObject method wraps client.ObjectKeyFromObject method by additionally checking if passed object is a cluster-scoped resource (e.g. CustomResourceDefinition, ClusterRole etc.) and removing the namespace from the key since cluster-scoped resources are not namespaced.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.