PriorityClass resource is non-namespaced. But why does it have a "priorityclass.metadata.namespace" field?

Not strictly related to the CKA course content, however -

kubectl api-resources --namespaced=true | grep priorityclass -i
(returns nothing)

But PriorityClass has a namespace field under metadata.

kubectl explain priorityclass.metadata.namespace

Why does the namespace field exist?

Hello, @vijaypsamy
To deploy in the other namespace not in the default namespace. This is the same as we do in the pod or other resources.