-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: add nil check for storage class name #2976
Conversation
Signed-off-by: stoneshi-yunify <70880165+stoneshi-yunify@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #2976 +/- ##
=========================================
- Coverage 10.75% 9.98% -0.78%
=========================================
Files 194 195 +1
Lines 41988 38921 -3067
=========================================
- Hits 4516 3885 -631
+ Misses 36894 34470 -2424
+ Partials 578 566 -12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Please add more unit tests for this file. |
Signed-off-by: stoneshi-yunify <70880165+stoneshi-yunify@users.noreply.github.com>
/lgtm |
this pr will fix below issues: |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: stoneshi-yunify, zheng1 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: stoneshi-yunify 70880165+stoneshi-yunify@users.noreply.github.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
Avoid panic(Internal server error) when searching PVCs with an empty storage class name.
Which issue(s) this PR fixes:
Fixes kubesphere/ks-installer#1109
Special notes for reviewers:
Additional documentation, usage docs, etc.: