At the moment, it does not appear that there is a straightforward way to determine whether a given Kubernetes type is namespaced.
Having an IsNamespaced boolean property on the KubernetesEntityAttribute would be very helpful for consumers of the client library who need to programmatically distinguish between namespaced and cluster-wide resources.
This addition would simplify logic in tools and libraries built on top of the client and would not require access to the Discovery API.
Thanks for considering this enhancement.