diff --git a/test/e2e/operator_test.go b/test/e2e/operator_test.go index eec3d18f4f..b5669c0064 100644 --- a/test/e2e/operator_test.go +++ b/test/e2e/operator_test.go @@ -9,6 +9,7 @@ import ( "context" "crypto/tls" "crypto/x509" + "encoding/json" "errors" "fmt" "io" @@ -3714,6 +3715,13 @@ func waitForIngressControllerCondition(t *testing.T, cl client.Client, timeout t }) if err != nil { t.Errorf("Expected conditions: %v\n Current conditions: %v", expected, current) + if ic != nil { + if icStatusPretty, err := json.MarshalIndent(ic.Status, "", " "); err != nil { + t.Fatal(err) + } else { + t.Logf("Ingress Controller %s/%s status: %s\n", ic.Namespace, ic.Name, string(icStatusPretty)) + } + } } return err }