Do we have the option to exclude resourceNames in k8s role

Do we have the option to exclude resourceNames in k8s role?

I think it does by using resourNames list in the Role Using RBAC Authorization | Kubernetes

Hi @balchua1 Thanks for the prompt response. Actually we are running application pods and db pods in default namespace. Application pods are using deployment and db applications are using Statefulset. we need to provide all access to application pods for developers and only particular people should have access to db applications. is there a way to do with the resourceNames with role feature?

The link i gave may provide some clue using the resourceNames of the Role resource. I am not an expert of the kubernetes RBAC, you may want to ask this question to the Kubernetes group if you need more help.