Skip to content

Commit 329bf81

Browse files
committed
fix: ensure we set the new PodIPs if they are present
1 parent 3e1a602 commit 329bf81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gameservers/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ func (c *Controller) syncGameServerRequestReadyState(ctx context.Context, gs *ag
951951
}
952952
}
953953
addressPopulated := false
954-
if gs.Status.NodeName == "" || !hasPodIPAddress {
954+
if gs.Status.NodeName == "" || (!hasPodIPAddress && len(pod.Status.PodIPs) > 0) {
955955
addressPopulated = true
956956
if pod.Spec.NodeName == "" {
957957
return gs, workerqueue.NewTraceError(errors.Errorf("node not yet populated for Pod %s", pod.ObjectMeta.Name))

0 commit comments

Comments
 (0)