title: How can I find the list of field selectors supported by kubectl for a given resource type?
body: <p>I've recently learned about kubectl <code>--field-selector</code> flag, but ran into errors when trying to use it with various objects.</p>
  
  <p>For example :</p>
  
  <pre class="lang-sh prettyprint-override"><code>$ kubectl delete jobs.batch --field-selector status.succeeded==1
  Error from server (BadRequest): Unable to find "batch/v1, Resource=jobs" that match label selector "", field selector "status.succeeded==1": field label "status.succeeded" not supported for batchv1.Job
  </code></pre>
  
  <p>According to <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/#supported-fields" rel="noreferrer">the documentation</a>, <code>Supported field selectors vary by Kubernetes resource type.</code>, so I guess this behaviour was to be expected.</p>
  
  <p>The annoying part is that I had to try individually each field to know if I could use them or not.</p>
  
  <p>Is there any way to get all the fields supported for a given resource type / resource version / kubectl version ?</p>