-
Notifications
You must be signed in to change notification settings - Fork 182
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
fix: avoid NPE is given spec is null #1899
Conversation
Also optimizes case where resource is a CustomResource. Fixes #1897
I think we should add also an integration test for namespace before release. But if you want I can do that in a separate PR. |
Kudos, SonarCloud Quality Gate passed! |
I think the current tests cover what needs to be covered and I'm not sure what an additional integration test would bring. |
When is the next release? Perhaps I could write a test since I was the one who reported the bug. But I wouldn't have time until this weekend. Also, thank you for fixing this so promptly! |
It's been released already but a test is always welcomed… |
It appears there is a similar issue for ServiceAccounts; I assume that it will extend to Role Binding and Roles as well. |
@coltmcnealy-lh see #1909 |
Thanks! I pulled the latest commit on
|
@metacosm I can check and add an integration test. |
Ah, I didn't pay enough attention, the PR only dealt with the update part, not the matching part 🤦🏼 |
Yeah, IMO best to add integration tests for these well definable features / aspects, so we check it running. |
#1911 should fix this now, hopefully! |
Thank you! I still see the To verify via the test @csviri wrote, you can do
Let me know if you'd like me to take a gander at the matchers branch and try to help contribute a fix. |
The #1911 PR includes the tests and CI is passing. I've also run the test locally without issue. I did initially see the issue but this turned out to be a problem with the test using an outdated snapshot version. Rebuilding the whole project solved the issue. Please let us know if you're still seeing an issue. |
I am currently having some issues; but it's likely due to me being a Maven newbie. Thank you for your patient help. If it turns out to not be a "me" problem, I'll push a PR with a test and a fix. I really appreciate all of your help! |
Also optimizes case where resource is a CustomResource.
Fixes #1897