Skip to content

Commit 0a5d42c

Browse files
Update pkg/scalers/metrics_api_scaler.go
Co-authored-by: Jan Wozniak <[email protected]> Signed-off-by: julianguinard <[email protected]>
1 parent 3255464 commit 0a5d42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scalers/metrics_api_scaler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (s *metricsAPIScaler) getEndpointsUrlsFromServiceURL(ctx context.Context, s
341341
for _, eps := range endpointSlice.Endpoints {
342342
// as suggested in https://github.com/kedacore/keda/pull/6565#discussion_r2395073047, make sure we take endpoint into account
343343
// only when it's ready
344-
if eps.Conditions.Ready == nil || !*eps.Conditions.Ready {
344+
if eps.Conditions.Ready != nil && !*eps.Conditions.Ready {
345345
continue
346346
}
347347
for _, address := range eps.Addresses {

0 commit comments

Comments
 (0)