From 45704f8bff6208ec28e4661c9f8d639be788b8fe Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Mon, 24 Jun 2024 01:02:20 +0800 Subject: [PATCH] fix extra config detection --- stack_orchestrator/deploy/deployment_create.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stack_orchestrator/deploy/deployment_create.py b/stack_orchestrator/deploy/deployment_create.py index 4e0a8e13..ba709ed8 100644 --- a/stack_orchestrator/deploy/deployment_create.py +++ b/stack_orchestrator/deploy/deployment_create.py @@ -238,6 +238,11 @@ def _find_extra_config_dirs(parsed_pod_file, pod): config_dir = host_path.split("/")[2] if config_dir != pod: config_dirs.add(config_dir) + for env_file in service_info.get("env_file", []): + if env_file.startswith("../config"): + config_dir = env_file.split("/")[2] + if config_dir != pod: + config_dirs.add(config_dir) return config_dirs