Skip to content

Move nil EndpointSlice conditions in isReady#4136

Merged
MustafaSaber merged 1 commit into
zalando:masterfrom
shrikant23codes:refactor/endpointslice-conditions
Jul 16, 2026
Merged

Move nil EndpointSlice conditions in isReady#4136
MustafaSaber merged 1 commit into
zalando:masterfrom
shrikant23codes:refactor/endpointslice-conditions

Conversation

@shrikant23codes

@shrikant23codes shrikant23codes commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Move nil EndpointSlice conditions handling into EndpointSliceEndpoints.isReady().

EndpointSlice endpoints with missing conditions is already treated as ready. So instead of having this check outside isReady moved it within.

This makes the isReady function handle all cases and avoids requiring future callers to duplicate the nil-condition check.

Tests

go test ./dataclients/kubernetes -run TestEndpointSliceEndpointIsReady
go test ./dataclients/kubernetes

Suggested label: refactor or bugfix (actually not a bug)

Fixes #4137

Signed-off-by: shrikant23codes <jiturishrikant@gmail.com>
@MustafaSaber MustafaSaber added the minor no risk changes, for example new filters label Jul 15, 2026
@MustafaSaber
MustafaSaber merged commit e7d7014 into zalando:master Jul 16, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor no risk changes, for example new filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move nil EndpointSlice conditions in isReady

3 participants