issue 8960: implement PodVolume exposer for PVB/PVR

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2025-06-04 13:44:10 +08:00
parent bd23062c24
commit 829e75e9b7
-6
View File
@@ -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