-
Notifications
You must be signed in to change notification settings - Fork 4.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 bug in multiple removal from crd versions list #6840
Conversation
If there are multiple served = false in the crd versions list, original logic will break since the it will result in out of bond error.
|
Welcome @shixuyue! |
Fixes #6632 |
Codecov Report
@@ Coverage Diff @@
## master #6840 +/- ##
=======================================
Coverage 41.61% 41.61%
=======================================
Files 44 44
Lines 1228 1228
Branches 162 162
=======================================
Hits 511 511
Misses 717 717 |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floreks, shixuyue The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If there are multiple served = false in the crd versions list, the original logic will break since the it will result in out of bond error.
Using the basic for loop to check if the Served field is false, if so, remove it from the version list, and shrink the size of list by 1 to avoid out of bond error.