File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
2222 "github.com/onsi/ginkgo/v2"
2323 . "github.com/onsi/gomega"
2424 v1 "k8s.io/api/core/v1"
25+ metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2526 "k8s.io/kubernetes/test/e2e/framework"
2627 e2edebug "k8s.io/kubernetes/test/e2e/framework/debug"
2728 "k8s.io/pod-security-admission/api"
@@ -108,6 +109,13 @@ var _ = ginkgo.Describe("nvmeof", func() {
108109 // log node plugin
109110 logsCSIPods ("app=" + nvmeofDaemonsetName , f .ClientSet )
110111
112+ // Gateway logs - need to search in rook-ceph namespace
113+ opt := metav1.ListOptions {LabelSelector : "app=ceph-nvmeof-gateway" }
114+ podList , _ := f .ClientSet .CoreV1 ().Pods (rookNamespace ).List (context .TODO (), opt )
115+ for i := range podList .Items {
116+ kubectlLogPod (f .ClientSet , & podList .Items [i ])
117+ }
118+
111119 // log all details from the namespace where Ceph-CSI is deployed
112120 e2edebug .DumpAllNamespaceInfo (context .TODO (), f .ClientSet , cephCSINamespace )
113121 }
You can’t perform that action at this time.
0 commit comments