@@ -377,14 +377,14 @@ func (e *genericRestoreExposer) RebindVolume(ctx context.Context, ownerObject co
377
377
}
378
378
379
379
func (e * genericRestoreExposer ) createRestorePod (ctx context.Context , ownerObject corev1.ObjectReference , targetPVC * corev1.PersistentVolumeClaim ,
380
- operationTimeout time.Duration , label map [string ]string , annotation map [string ]string , selectedNode string , resources corev1.ResourceRequirements , nodeType string ) (* corev1.Pod , error ) {
380
+ operationTimeout time.Duration , label map [string ]string , annotation map [string ]string , selectedNode string , resources corev1.ResourceRequirements , nodeOS string ) (* corev1.Pod , error ) {
381
381
restorePodName := ownerObject .Name
382
382
restorePVCName := ownerObject .Name
383
383
384
384
containerName := string (ownerObject .UID )
385
385
volumeName := string (ownerObject .UID )
386
386
387
- podInfo , err := getInheritedPodInfo (ctx , e .kubeClient , ownerObject .Namespace , kube . NodeOSLinux )
387
+ podInfo , err := getInheritedPodInfo (ctx , e .kubeClient , ownerObject .Namespace , nodeOS )
388
388
if err != nil {
389
389
return nil , errors .Wrap (err , "error to get inherited pod info from node-agent" )
390
390
}
@@ -427,7 +427,7 @@ func (e *genericRestoreExposer) createRestorePod(ctx context.Context, ownerObjec
427
427
nodeSelector := map [string ]string {}
428
428
podOS := corev1.PodOS {}
429
429
toleration := []corev1.Toleration {}
430
- if nodeType == kube .NodeOSWindows {
430
+ if nodeOS == kube .NodeOSWindows {
431
431
userID := "ContainerAdministrator"
432
432
securityCtx = & corev1.PodSecurityContext {
433
433
WindowsOptions : & corev1.WindowsSecurityContextOptions {
0 commit comments