title: Get namespace quotas using k8s client-go
body: <p>I am looking for a way to get resource quotas for the namespace using client-go, similar to <code>kubectl describe ns my-namespace-name</code>.</p>
  
  <p>I have tried <code>ns, err := k8client.CoreV1().Namespaces().Get("my-namespace-name", metav1.GetOptions{})</code> but it does not give quota info.</p>
  
  <p>Also tried <code>ns, err := k8client.CoreV1().ResourceQuotas("my-namespace-name").Get("name", metav1.GetOptions{})</code> but I can not figure out what to put as <code>name</code> parameter in .Get(). Tried namespace name, tried several resource types from <a href="https://kubernetes.io/docs/reference/kubectl/overview/#resource-types" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/kubectl/overview/#resource-types</a> but no luck with errors like <code>resourcequotas "namespaces" not found</code> or 
  <code>resourcequotas "limits.cpu" not found</code> </p>
  
  <p>Tried <code>ns, err := k8client.CoreV1().ResourceQuotas("my-namespace-name").List(metav1.ListOptions{})</code> as well but it returned no result. </p>
  
  <p>Any ideas on how to get it will be much appreciated!</p>