Remove deprecated usage of --delete-local-data
Use on drain commands `--delete-emptydir-data`.
@@ -130,10 +130,10 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:cnv-qe@redhat.com][leve
vmiSelector := v1.AppLabel + "=virt-launcher"
k8sClient := tests.GetK8sCmdClient()
if k8sClient == "oc" {
- tests.RunCommandWithNS("", k8sClient, "adm", "drain", node, "--delete-local-data", "--pod-selector", vmiSelector,
+ tests.RunCommandWithNS("", k8sClient, "adm", "drain", node, "--delete-emptydir-data", "--pod-selector", vmiSelector,
"--ignore-daemonsets=true", "--force", "--timeout=180s")
} else {
- tests.RunCommandWithNS("", k8sClient, "drain", node, "--delete-local-data", "--pod-selector", vmiSelector,
+ tests.RunCommandWithNS("", k8sClient, "drain", node, "--delete-emptydir-data", "--pod-selector", vmiSelector,
"--ignore-daemonsets=true", "--force", "--timeout=180s")
}
}
