<p>How to select <code>SUSPEND=False</code> cronjob?</p>
<p><code>--selector</code> can't be used as <code>suspend</code> is not added in the labels.</p>

Dev
<p>By using a JSONPath expression and passing it via the <code>--output=jsonpath=</code> option to <code>kubectl</code> I was able to select only cronjobs which are unsuspended and print their names as follows:</p>
<pre><code>kubectl get cronjob --output=jsonpath='{range .items[?(.spec.suspend==false)]}{.metadata.name}{&quot;\n&quot;}{end}'
</code></pre>
<p>In order yo invert the selection you can simply filter on <code>spec.suspend==true</code> instead of <code>false</code>, i.e.:</p>
<pre><code>kubectl get cronjob --output=jsonpath='{range .items[?(.spec.suspend==true)]}{.metadata.name}{&quot;\n&quot;}{end}'
</code></pre>
<p>For explicitness you can additionally pass the <code>--no-headers</code> like so, even though the former command already does not print any headers:</p>
<pre><code>kubectl get cronjob --no-headers --output=jsonpath='{range .items[?(.spec.suspend==false)]}{.metadata.name}{&quot;\n&quot;}{end}'
</code></pre>
<p>Last but not least you can combine the commands above with Kubernetes selector expressions; for example:</p>
<pre><code>kubectl get cronjob --selector=sometagkey==sometagvalue --no-headers --output=jsonpath='{range .items[?(.spec.suspend==false)]}{.metadata.name}{&quot;\n&quot;}{end}'
</code></pre>
