-
Notifications
You must be signed in to change notification settings - Fork 733
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
Do not expect deletion if data migration is in progress #474
Do not expect deletion if data migration is in progress #474
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.
LGTM! Good catch!
// do not delete a pod or expect a deletion if a data migration is in progress | ||
isMigratingData := migration.IsMigratingData(observedState, pod, ToDelete) | ||
if isMigratingData { | ||
log.Info("Skipping deletes because of migrating data", "pod", pod.Name) |
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.
Nit: I know it doesn't come from your PR, but maybe we could change Skipping deletes
to Skipping deletion
?
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. Left a nit and a question.
|
||
// deletePods deletes a list of pods after checking there is no migrating data for each of them | ||
func (d *defaultDriver) deletePods( | ||
ToDelete []corev1.Pod, |
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.
I would tend to keep the variable name in lowercase: toDelete.
Fix #469