mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
Refractor E2E to reduce code duplication
Updated E2E to reduce code duplication and create resouces in different namespaces. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
4690dc6ea7
commit
e788328750
@ -25,11 +25,10 @@ import (
|
||||
)
|
||||
|
||||
func logsCSIPods(label string, c clientset.Interface) {
|
||||
ns := "default"
|
||||
opt := metav1.ListOptions{
|
||||
LabelSelector: label,
|
||||
}
|
||||
podList, err := c.CoreV1().Pods(ns).List(opt)
|
||||
podList, err := c.CoreV1().Pods(cephCSINamespace).List(opt)
|
||||
if err != nil {
|
||||
e2elog.Logf("failed to list pods with selector %s %v", label, err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user