Merge pull request #29672 from lixiaobing10051267/masterLen
Automatic merge from submit-queue
Add handling empty index key that may cause panic issue
if len(indexKeys) == 0, "return indexKeys[0]" will cause unexpected result.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/29672)
<!-- Reviewable:end -->
Showing
Please
register
or
sign in
to comment