This repository was archived by the owner on Dec 4, 2025. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: return empty list instead of nil to prevent panic. Fixes #25189 … #794
Uh oh!
There was an error while loading. Please reload this page.
fix: return empty list instead of nil to prevent panic. Fixes #25189 … #794
Changes from all commits
7d694cdFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check warning on line 285 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check warning on line 309 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check warning on line 333 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check warning on line 344 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check warning on line 358 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check warning on line 364 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check failure on line 581 in pkg/cache/cluster.go
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.
Check failure on line 637 in pkg/cache/cluster.go
Remove this 'else' clause; the code should continue after the error check.
Check failure on line 945 in pkg/cache/cluster.go
Remove this 'else' clause; the code should continue after the error check.
Check warning on line 1342 in pkg/cache/cluster.go
Group together these consecutive parameters of the same type.
Check warning on line 1379 in pkg/cache/cluster.go
Remove the 'Get' prefix from this function name.
Check failure on line 22 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 22 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'obj' should be removed.
Check warning on line 22 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 22 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'subresources' should be removed.
Check warning on line 22 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check failure on line 26 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 26 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 26 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'subresources' should be removed.
Check warning on line 26 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check warning on line 26 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'obj' should be removed.
Check failure on line 30 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 30 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 30 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'obj' should be removed.
Check warning on line 30 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check failure on line 34 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 34 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'name' should be removed.
Check warning on line 34 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'subresources' should be removed.
Check warning on line 34 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check warning on line 34 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check failure on line 38 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 38 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check warning on line 38 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 38 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'listOptions' should be removed.
Check failure on line 42 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 42 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'subresources' should be removed.
Check warning on line 42 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 42 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check failure on line 46 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 46 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check warning on line 46 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'opts' should be removed.
Check failure on line 52 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 52 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check warning on line 52 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'opts' should be removed.
Check failure on line 56 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 56 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'name' should be removed.
Check warning on line 56 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 56 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'pt' should be removed.
Check warning on line 56 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'data' should be removed.
Check warning on line 56 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'subresources' should be removed.
Check warning on line 56 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check failure on line 60 in pkg/cache/cluster_nil_fix_test.go
Check warning on line 60 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'name' should be removed.
Check warning on line 60 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'subresources' should be removed.
Check warning on line 60 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'obj' should be removed.
Check warning on line 60 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.
Check warning on line 60 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'ctx' should be removed.
Check warning on line 64 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'obj' should be removed.
Check warning on line 64 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'name' should be removed.
Check warning on line 64 in pkg/cache/cluster_nil_fix_test.go
Unused parameter 'options' should be removed.