Skip to content

Commit cf7a72f

Browse files
authored
e2e: restore build after overlapping helper additions (#2544)
#2538 and #2537 each added a kindCluster.deletePod helper. Both changes merged cleanly, but together they leave the e2e package with duplicate method definitions. Keep the version from #2538 because its resilience callers recreate pods under the same names immediately and need deletion to finish first. The service/DNS cleanup can use the same stronger helper.
1 parent cdf7605 commit cf7a72f

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

e2e/kube.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,3 @@ func (kc *kindCluster) deleteService(ctx context.Context, namespace, name string
440440
}
441441
return nil
442442
}
443-
444-
// deletePod removes a single pod immediately, ignoring NotFound.
445-
func (kc *kindCluster) deletePod(ctx context.Context, namespace, name string) error {
446-
gracePeriodSeconds := int64(0)
447-
err := kc.client.CoreV1().Pods(namespace).Delete(ctx, name, metav1.DeleteOptions{
448-
GracePeriodSeconds: &gracePeriodSeconds,
449-
})
450-
if err != nil && !errors.IsNotFound(err) {
451-
return fmt.Errorf("deleting pod %s: %w", name, err)
452-
}
453-
return nil
454-
}

0 commit comments

Comments
 (0)