@@ -26,6 +26,20 @@ func Test_E2ECalicoEBPF(t *testing.T) {
2626 RunSpecs (t , "Validate dualstack in Calico eBPF Test Suite" , suiteConfig , reporterConfig )
2727}
2828
29+ func getHelmCalicoLog (kubeConfig string ) string {
30+ cmd := "kubectl get pods -n tigera-operator -o name --kubeconfig=" + kubeConfig
31+ helmPod , err := e2e .RunCommand (cmd )
32+ if err != nil {
33+ return fmt .Sprintf ("error getting tigera-operator pod: %v" , err )
34+ }
35+ cmd = "kubectl logs -n tigera-operator " + strings .TrimSpace (helmPod ) + " --kubeconfig=" + kubeConfig
36+ logs , err := e2e .RunCommand (cmd )
37+ if err != nil {
38+ return fmt .Sprintf ("error getting tigera-operator logs: %v" , err )
39+ }
40+ return logs
41+ }
42+
2943var tc * e2e.TestConfig
3044var _ = ReportAfterEach (e2e .GenReport )
3145
@@ -48,6 +62,12 @@ var _ = Describe("Verify DualStack in Calico eBPF configuration", Ordered, func(
4862
4963 It ("Checks Node Status" , func () {
5064 Eventually (func (g Gomega ) {
65+ pods , err := e2e .ParsePods (tc .KubeconfigFile , false )
66+ fmt .Printf ("pods: %v\n " , pods )
67+
68+ calicoLogs := getHelmCalicoLog (tc .KubeconfigFile )
69+ fmt .Println (calicoLogs )
70+
5171 nodes , err := e2e .ParseNodes (tc .KubeconfigFile , false )
5272 g .Expect (err ).NotTo (HaveOccurred ())
5373 for _ , node := range nodes {
0 commit comments