mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-15 11:46:06 +00:00
issue 8960: implement PodVolume exposer for PVB/PVR
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -152,12 +152,6 @@ func (e *podVolumeExposer) Expose(ctx context.Context, ownerObject corev1api.Obj
|
||||
return errors.Wrapf(err, "error to create hosting pod")
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err != nil {
|
||||
kube.DeletePodIfAny(ctx, e.kubeClient.CoreV1(), hostingPod.Name, hostingPod.Namespace, curLog)
|
||||
}
|
||||
}()
|
||||
|
||||
curLog.WithField("pod name", hostingPod.Name).Info("Hosting pod is created")
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user