We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4374c0 commit eb8fd57Copy full SHA for eb8fd57
pkg/jobs/job_list.go
@@ -54,6 +54,20 @@ func JobList() []Job {
54
return results
55
},
56
57
+ {
58
+ Name: "events-list",
59
+ Global: false,
60
+ Execute: func(dc *data_collector.DataCollector, ctx context.Context) map[string][]byte {
61
+ jobResults := make(map[string][]byte)
62
+ for _, namespace := range dc.Namespaces {
63
+ result, _ := dc.K8sCoreClientSet.CoreV1().Events(namespace).List(ctx, metav1.ListOptions{})
64
+ jsonResult, _ := json.MarshalIndent(result, "", " ")
65
+ jobResults[path.Join(dc.BaseDir, namespace, "events.json")] = jsonResult
66
+ }
67
+
68
+ return jobResults
69
+ },
70
71
{
72
Name: "configmap-list",
73
Global: false,
0 commit comments