-
Notifications
You must be signed in to change notification settings - Fork 3.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: Fix bug in deleting pods. Fixes #2571 #2572
Conversation
This bug was introduced in July 2019. |
@@ -17,7 +17,7 @@ export interface WorkflowListItemProps { | |||
} | |||
|
|||
function wfDuration(workflow: models.WorkflowStatus, now: moment.Moment) { | |||
const endTime = workflow.finishedAt ? moment(workflow.finishedAt) : now |
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.
looks like master needed linting :(
@@ -458,7 +458,7 @@ func DeletePod(c kubernetes.Interface, podName, namespace string) error { | |||
for attempt := 0; attempt < deleteRetries; attempt++ { | |||
err = c.CoreV1().Pods(namespace).Delete(podName, &metav1.DeleteOptions{}) | |||
if err == nil || apierr.IsNotFound(err) { | |||
break | |||
return nil |
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.
this is what you get when you do not write tests
Codecov Report
@@ Coverage Diff @@
## master #2572 +/- ##
==========================================
- Coverage 11.21% 11.17% -0.05%
==========================================
Files 75 83 +8
Lines 31838 32598 +760
==========================================
+ Hits 3571 3642 +71
- Misses 27783 28457 +674
- Partials 484 499 +15
Continue to review full report at Codecov.
|
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.