import json
import tarfile
import io
+from time import sleep
from distutils.version import LooseVersion
:param: filename: Name of the file in the destination folder
"""
pod_name = f"copy-pod-{name}"
+ self.logger.debug(f"Creating pvc {name}")
await self.create_pvc(name=name, namespace=namespace)
+ self.logger.debug("Sleeping")
+ sleep(40)
+ self.logger.debug(f"Creating pod {pod_name}")
await self.create_copy_pod(name=pod_name, namespace=namespace, pvc_name=name)
+ self.logger.debug("Sleeping")
+ sleep(40)
+ self.logger.debug(f"Copying files to pod {pod_name}")
self.copy_file_to_pod(
namespace=namespace,
pod_name=pod_name,