Skip to content

Commit e4e2c87

Browse files
committed
Revert "Issue 23: Collect nginx-ingress version in the NIC pods"
This reverts commit aac3bbc.
1 parent aac3bbc commit e4e2c87

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

pkg/jobs/nic_job_list.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -434,32 +434,6 @@ func NICJobList() []Job {
434434
ch <- jobResult
435435
},
436436
},
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("\tCould 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("\tCommand 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-
},
463437
{
464438
Name: "crd-objects",
465439
Timeout: time.Second * 10,

0 commit comments

Comments
 (0)