Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-1.x] refactor: Return consistent empty slice from .All() methods #299

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 8, 2023

Backport 88f5871 from #297.

The clients `.All()` & `.AllWithOpts()` methods returned an inconsistent
slice value when no resources were found. Some clients returned a `nil`
slice while others returned an empty slice with 0 entries.

This makes sure that all methods return empty slices except if an actual
error occured.

(cherry picked from commit 88f5871)
@github-actions github-actions bot requested a review from a team as a code owner August 8, 2023 11:02
@apricote apricote merged commit 31347b9 into release-1.x Aug 8, 2023
@apricote apricote deleted the backport-297-to-release-1.x branch August 8, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant