Skip to content

Commit

Permalink
controller: Don't panic when ready condition in a endpointslice is mi…
Browse files Browse the repository at this point in the history
…ssing (#9550)
  • Loading branch information
schoentoon authored Feb 17, 2023
1 parent d6bba85 commit 4aef45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/controller/endpointslices.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func getEndpointsFromSlices(s *corev1.Service, port *corev1.ServicePort, proto c
}

for _, ep := range eps.Endpoints {
if !(*ep.Conditions.Ready) {
if (ep.Conditions.Ready != nil) && !(*ep.Conditions.Ready) {
continue
}
epHasZone := false
Expand Down

0 comments on commit 4aef45c

Please sign in to comment.