controller: Don't panic when ready condition in a endpointslice is missing (#9550)
This commit is contained in:
parent
fc95994736
commit
e98fc3b3ea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue