Documentation
¶
Overview ¶
Package scope provides utilities for determining Kubernetes resource scope compatibility, particularly for owner reference eligibility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanSetOwnerReference ¶
func CanSetOwnerReference( owner, owned client.Object, scheme *runtime.Scheme, mapper meta.RESTMapper, ) (bool, error)
CanSetOwnerReference reports whether the owner can set an OwnerReference on the owned object. It returns false when the owned resource is cluster-scoped and the owner is namespace-scoped, which the Kubernetes API server rejects.
Returns an error if the provided RESTMapper is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.