-
Notifications
You must be signed in to change notification settings - Fork 717
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
PVC may be stolen by an other pod #1052
Conversation
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.
Can we test this somehow (probably hard due to it being a timing issue)
@@ -326,6 +327,11 @@ func (d *defaultDriver) Reconcile( | |||
} | |||
} | |||
|
|||
orphanedPVCs, err := pvc.FindOrphanedVolumeClaims(d.Client, es) |
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.
A comment why this fixes the problem would be nice.
My concern here is that the reconcile loop is not covered by unit tests. |
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
This PR fixes a situation where a PVC can be adopted/stolen if a Pod takes too long to be created.