@@ -434,32 +434,6 @@ func NICJobList() []Job {
434
434
ch <- jobResult
435
435
},
436
436
},
437
- {
438
- Name : "exec-nginx-ingress-version" ,
439
- Timeout : time .Second * 10 ,
440
- Execute : func (dc * data_collector.DataCollector , ctx context.Context , ch chan JobResult ) {
441
- jobResult := JobResult {Files : make (map [string ][]byte ), Error : nil }
442
- command := []string {"./nginx-ingress" , "--version" }
443
- for _ , namespace := range dc .Namespaces {
444
- pods , err := dc .K8sCoreClientSet .CoreV1 ().Pods (namespace ).List (ctx , metav1.ListOptions {})
445
- if err != nil {
446
- dc .Logger .Printf ("\t Could not retrieve pod list for namespace %s: %v\n " , namespace , err )
447
- } else {
448
- for _ , pod := range pods .Items {
449
- if strings .Contains (pod .Name , "ingress" ) {
450
- res , err := dc .PodExecutor (namespace , pod .Name , command , ctx )
451
- if err != nil {
452
- dc .Logger .Printf ("\t Command execution %s failed for pod %s in namespace %s: %v\n " , command , pod .Name , namespace , err )
453
- } else {
454
- jobResult .Files [path .Join (dc .BaseDir , "exec" , namespace , pod .Name + "__nginx-ingress-version.txt" )] = res
455
- }
456
- }
457
- }
458
- }
459
- }
460
- ch <- jobResult
461
- },
462
- },
463
437
{
464
438
Name : "crd-objects" ,
465
439
Timeout : time .Second * 10 ,
0 commit comments