mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
fix: handle error return from PVC Delete call
This commit is contained in:
@@ -180,7 +180,7 @@ func (e *Engine) Clean(ctx context.Context) error {
|
||||
// Delete PVCs
|
||||
pvcs, _ := e.client.CoreV1().PersistentVolumeClaims(e.namespace).List(ctx, metav1.ListOptions{})
|
||||
for _, pvc := range pvcs.Items {
|
||||
e.client.CoreV1().PersistentVolumeClaims(e.namespace).Delete(ctx, pvc.Name, metav1.DeleteOptions{})
|
||||
_ = e.client.CoreV1().PersistentVolumeClaims(e.namespace).Delete(ctx, pvc.Name, metav1.DeleteOptions{})
|
||||
}
|
||||
|
||||
// Delete namespace
|
||||
|
||||
Reference in New Issue
Block a user