Skip to content

Commit

Permalink
fix: ensure we set the new PodIPs if they are present
Browse files Browse the repository at this point in the history
  • Loading branch information
lacroixthomas committed Jan 25, 2025
1 parent 3e1a602 commit 329bf81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gameservers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ func (c *Controller) syncGameServerRequestReadyState(ctx context.Context, gs *ag
}
}
addressPopulated := false
if gs.Status.NodeName == "" || !hasPodIPAddress {
if gs.Status.NodeName == "" || (!hasPodIPAddress && len(pod.Status.PodIPs) > 0) {
addressPopulated = true
if pod.Spec.NodeName == "" {
return gs, workerqueue.NewTraceError(errors.Errorf("node not yet populated for Pod %s", pod.ObjectMeta.Name))
Expand Down

0 comments on commit 329bf81

Please sign in to comment.