Skip to content

Commit dda9624

Browse files
committed
Fix nil check; remove logs
1 parent 5d1192b commit dda9624

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/mode/static/handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ func (h *eventHandlerImpl) waitForStatusUpdates(ctx context.Context) {
317317
case status.UpdateAll:
318318
h.updateStatuses(ctx, gr, gw)
319319
case status.UpdateGateway:
320+
if gw == nil {
321+
continue
322+
}
323+
320324
gwAddresses, err := getGatewayAddresses(
321325
ctx,
322326
h.cfg.k8sClient,

tests/framework/resourcemanager.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,9 @@ func (rm *ResourceManager) WaitForPodsToBeReady(ctx context.Context, namespace s
361361
if err := rm.K8sClient.List(ctx, &podList, client.InNamespace(namespace)); err != nil {
362362
return false, err
363363
}
364-
fmt.Println("POD LIST ", podList.Items)
365364

366365
var podsReady int
367366
for _, pod := range podList.Items {
368-
fmt.Println("POD STATUS ", pod.Name, pod.Status)
369367
for _, cond := range pod.Status.Conditions {
370368
if cond.Type == core.PodReady && cond.Status == core.ConditionTrue {
371369
podsReady++

0 commit comments

Comments
 (0)