Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportsOwnerReference ¶
func SupportsOwnerReference(restMapper meta.RESTMapper, owner, dependent runtime.Object, depNamespace string) (bool, error)
SupportsOwnerReference checks whether a given dependent supports owner references, based on the owner. The namespace of the dependent resource can either be passed in explicitly, otherwise it will be extracted from the dependent runtime.Object. This function performs following checks:
-- True: Owner is cluster-scoped. -- True: Both Owner and dependent are Namespaced with in same namespace. -- False: Owner is Namespaced and dependent is Cluster-scoped. -- False: Both Owner and dependent are Namespaced with different namespaces.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.