<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>you can't select spec.suspend on a kubectl filter.</p>
<p>You could make your own jq filter</p>
<p>(this is just an example and could be a lot cleaner)</p>
<pre><code>k get cronjob --output=json | 
  jq -c 'select( .items[].spec.suspend == false)' | 
  jq  '.items[] | .metadata.name + &quot; &quot; + .spec.schedule + &quot; &quot;
  + (.spec.suspend|tostring) + &quot; &quot; + .spec.active'
</code></pre>
<p>Or if you don't mind a little golang</p>
<pre class="lang-golang prettyprint-override"><code>// Look at https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go 
// for the other parameters (like using current kubectl context).
func getCronsBySuspend(clientset *kubernetes.Clientset, namespace string) {
    cjs, err := clientset.BatchV1().CronJobs(namespace).List(context.TODO(), metav1.ListOptions{})
    if err != nil {
        panic(err.Error())
    }

    var c []string
    for _, cron := range cjs.Items {
        if *cron.Spec.Suspend == false {
            c = append(c, cron.Name)
        }
    }

    fmt.Printf(&quot;%v&quot;, c)
}
</code></pre>
