controller: Don't panic when ready condition in a endpointslice is missing (#9550)
This commit is contained in:
parent
d6bba85351
commit
4aef45c177
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 {
|
for _, ep := range eps.Endpoints {
|
||||||
if !(*ep.Conditions.Ready) {
|
if (ep.Conditions.Ready != nil) && !(*ep.Conditions.Ready) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
epHasZone := false
|
epHasZone := false
|
||||||
|
|
Loading…
Reference in a new issue