title: Get pod list for a node with specified condition (not state)?
body: <p>Is there is a way to get pod list for the specified namespace, application, node name and pod condition? Applying lablelSelector to the query string it is possible to specify the application name, using <code>fieldSelector</code> I can select node name (<code>spec.nodeName==node</code>) and even phase (<code>status.phase==Running</code>). But status.phase will return all pods that are in specified phase including those that are actually in CrashLoopBackOff or located on nodes that were lost.</p>
  
  <p>After analyzing the respond JSON I found, that there is a 'status' section that actually has 'status.phase' field mentioned above and section called "conditions" that stores an array/list of records of several "types" describing current condition of corresponding parameters. Among them there is a subsection (dictionary on Python terms) that has <code>"type" : "Ready"</code> and <code>"status" : &lt;value&gt;</code> that is what I need.</p>
  
  <p>Full section of respond looks like this:</p>
  
  <pre><code>   "status": {
      "phase": "Running",
      "conditions": [
        {
          "type": "Initialized",
          "status": "True",
          "lastProbeTime": null,
          "lastTransitionTime": "2018-09-11T15:49:09Z"
        },
        {
          "type": "Ready",
          "status": "True",
          "lastProbeTime": null,
          "lastTransitionTime": "2018-09-11T19:05:01Z"
        },
        {
          "type": "ContainersReady",
          "status": "True",
          "lastProbeTime": null,
          "lastTransitionTime": null
        },
        {
          "type": "PodScheduled",
          "status": "True",
          "lastProbeTime": null,
          "lastTransitionTime": "2018-09-11T15:49:09Z"
        }
      ]
  </code></pre>
  
  <p>It is obvious, that labelSelector and fieldSelector work using corresponding sections/fields of respond JSON. But I was not able to find the way to apply something like fieldSelector for "conditions" subsection. Like fieldSelector=conditions.type.Ready==True.</p>
  
  <p>Sure, I can parse the respond in Python and select only pods heaving condition I need, but that does not look right to me.</p>
  
  <p>Anybody have an idea how to specify pod condition in the API request?</p>
  
  <p>Currently I'm using: <code>/api/v1/namespaces/&lt;namespace&gt;/pods?labelSeletor=app%3D&lt;appname&gt;&amp;fieldSelector=status.phase%3D%3DRunning,spec.nodeName%3D%3D&lt;nodename&gt;</code>.</p>