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

Fail don't panic on failure to list NopResources #2426

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

hasheddan
Copy link
Member

Description of your changes

Fails on error to list NopResource with descriptive error rather than
panic on deferencing a nil pointer.

Signed-off-by: hasheddan georgedanielmangum@gmail.com

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Ran e2e tests (with this change but not #2425) and identified error rather than the panic we see in https://github.com/crossplane/test/runs/3008764426?check_suite_focus=true#step:8:132

Fails on error to list NopResource with descriptive error rather than
panic on deferencing a nil pointer.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
@hasheddan hasheddan added the bug Something isn't working label Jul 7, 2021
@hasheddan hasheddan requested review from negz and jbw976 July 7, 2021 15:56
@hasheddan hasheddan merged commit e34887a into crossplane:master Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants