<p>I am trying to get a list of events in the namespace, but with or without FieldSelector I get an empty list. Is this the right way to do it?</p>

<pre><code>            eventListOptions := metav1.ListOptions{FieldSelector: fields.OneTermEqualSelector("involvedObject.name", job.Name).String()}
            jobEvents, _ := clientset.EventsV1beta1().Events(GetNamespace()).List(eventListOptions)
</code></pre>

bianchi
<p>If you print error return by <code>List</code>, you should get error something like <code>"involvedObject.name" is not a known field selector: only "metadata.name", "metadata.namespace"</code></p>

<p>use <code>CoreV1</code> instead of <code>EventsV1beta1</code></p>

<p>The line will be something like below:</p>

<p><code>jobEvents, _ := clientset.CoreV1().Events(GetNamespace()).List(eventListOptions)</code></p>

<hr>

<p><code>"involvedObject.name", job.Name</code> isn't supported by <code>EventsV1beta1</code></p>

<p>Hope it'll help.</p>
