-
Notifications
You must be signed in to change notification settings - Fork 963
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
bugfix: the csinode driver status failed updating #2509
Conversation
4b6e200
to
221cf2d
Compare
221cf2d
to
4734cce
Compare
@elinx: GitHub didn't allow me to assign the following users: jiangkaihua. Note that only volcano-sh members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
||
for i := range csiNode.Spec.Drivers { | ||
d := csiNode.Spec.Drivers[i] | ||
csiNodeStatus.DriverStatus[d.Name] = d.Allocatable != nil && d.Allocatable.Count != nil | ||
} | ||
sc.CSINodesStatus[csiNode.Name] = csiNodeStatus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if csiNodeStatus exists in sc.CSINodesStatus[csiNode.Name], we still create a new csiNodeStatus?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the old status should be overrided completely because we don't know which driver pod is dead or recreated, otherwise there may left some non existent driver status as true.
The existing implementation still keeps the deleted driver status as true, this pr fix it. Signed-off-by: xilinxing <[email protected]>
4734cce
to
57d43d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang 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 |
fix #2508 the existing implementation still keeps the deleted driver
status as true, this pr fix it.
Signed-off-by: xilinxing [email protected]