What is the equivalent of: kubectl auth can-i prune <resource_type>?

Is there a way for me to determine if the current user has access to prune a given resource?

My initial thought process was that prune is internally subdivided into delete/list operations, but I am not sure if that is actually the case, any thoughts?

Probably right. You could just test it out by giving a user only get and delete access, without list being available.



1 Like