mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-31 13:17:13 +00:00
remove merged back deprecate code
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user