File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,28 @@ func JobList() []Job {
171
171
return jobResults
172
172
},
173
173
},
174
+ {
175
+ Name : "events-info" ,
176
+ Global : true ,
177
+ Execute : func (dc * data_collector.DataCollector , ctx context.Context ) map [string ][]byte {
178
+ jobResults := make (map [string ][]byte )
179
+ result , _ := dc .K8sCoreClientSet .CoreV1 ().Events ("" ).List (ctx , metav1.ListOptions {})
180
+ jsonResult , _ := json .MarshalIndent (result , "" , " " )
181
+ jobResults [path .Join (dc .BaseDir , "k8s" , "events.json" )] = jsonResult
182
+ return jobResults
183
+ },
184
+ },
185
+ {
186
+ Name : "secrets-info" ,
187
+ Global : true ,
188
+ Execute : func (dc * data_collector.DataCollector , ctx context.Context ) map [string ][]byte {
189
+ jobResults := make (map [string ][]byte )
190
+ result , _ := dc .K8sCoreClientSet .CoreV1 ().Secrets ("" ).List (ctx , metav1.ListOptions {})
191
+ jsonResult , _ := json .MarshalIndent (result , "" , " " )
192
+ jobResults [path .Join (dc .BaseDir , "k8s" , "secrets.json" )] = jsonResult
193
+ return jobResults
194
+ },
195
+ },
174
196
{
175
197
Name : "metrics-information" ,
176
198
Global : true ,
You can’t perform that action at this time.
0 commit comments