remove merged back deprecate code

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2023-03-21 09:56:52 +08:00
parent 458560795b
commit 115f32cae5
3 changed files with 2 additions and 14 deletions
@@ -19,7 +19,6 @@ package controller
import (
"bytes"
"context"
"io/ioutil"
"os"
"github.com/pkg/errors"
@@ -146,7 +145,7 @@ func (r *backupFinalizerReconciler) Reconcile(ctx context.Context, req ctrl.Requ
return ctrl.Result{}, errors.Wrap(err, "error downloading backup")
}
defer closeAndRemoveFile(inBackupFile, log)
outBackupFile, err = ioutil.TempFile("", "")
outBackupFile, err = os.CreateTemp("", "")
if err != nil {
log.WithError(err).Error("error creating temp file for backup")
return ctrl.Result{}, errors.WithStack(err)