fix(e2e): Stop go panic if pod or pod status is not initialised
* While checking for the catalogue source pod, the function needs to
assume that the pod may not yet exist.
@@ -145,7 +145,7 @@ func catalogSourcePodRunning(ns, csName string) error {
for i := 1; i < 5; i++ {
csPod := podFunc()
- if csPod.Status.Phase == "Running" {
+ if csPod != nil && csPod.Status.Phase == "Running" {
return nil // Pod good to go
}
