type hint
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 33s
Deploy Test / Run deploy test suite (pull_request) Failing after 1m18s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 1m16s
K8s Deployment Control Test / Run deployment control suite on kind/k8s (pull_request) Failing after 1m17s
Webapp Test / Run webapp test suite (pull_request) Failing after 1m31s
Smoke Test / Run basic test suite (pull_request) Failing after 1m24s

This commit is contained in:
Roy Crihfield 2024-10-15 15:58:20 +08:00
parent 832e5c6e3c
commit f238078940

View File

@ -422,7 +422,7 @@ def _copy_files_to_directory(file_paths: List[Path], directory: Path):
copy(path, os.path.join(directory, os.path.basename(path))) copy(path, os.path.join(directory, os.path.basename(path)))
def _create_deployment_file(deployment_dir: Path, cluster): def _create_deployment_file(deployment_dir: Path, cluster: str | None):
deployment_file_path = deployment_dir.joinpath(constants.deployment_file_name) deployment_file_path = deployment_dir.joinpath(constants.deployment_file_name)
if cluster is None: if cluster is None:
cluster = f"{constants.cluster_name_prefix}{token_hex(8)}" cluster = f"{constants.cluster_name_prefix}{token_hex(8)}"