|
10 | 10 | from manager.notification_api import _manager_notification, register_notification |
11 | 11 | from manager.constants import ( |
12 | 12 | DAEPLOY_PROXY_DASHBOARD_IDENTIFIER, |
13 | | - DAEPLOY_MANAGER_IDENTIFIER, |
| 13 | + DAEPLOY_MANAGER_PROXY_CONFIG_FILE, |
14 | 14 | DAEPLOY_AUTH_MIDDLEWARE, |
15 | 15 | DAEPLOY_AUTH_MIDDLEWARE_IDENTIFIER, |
16 | 16 | DAEPLOY_DATA_DIR, |
@@ -343,7 +343,9 @@ def initial_setup(): |
343 | 343 | ) |
344 | 344 |
|
345 | 345 | # Add manager to root |
346 | | - add_dynamic_configuration(DAEPLOY_MANAGER_IDENTIFIER, get_manager_configuration()) |
| 346 | + add_dynamic_configuration( |
| 347 | + DAEPLOY_MANAGER_PROXY_CONFIG_FILE, get_manager_configuration() |
| 348 | + ) |
347 | 349 |
|
348 | 350 | # Add auth middleware |
349 | 351 | add_dynamic_configuration( |
@@ -405,7 +407,7 @@ def create_new_service_configuration(name: str, version: str, address: str): |
405 | 407 | """ |
406 | 408 | LOGGER.info(f"Creating configuration for service: {name}") |
407 | 409 | service_name = f"{name}_{version}" |
408 | | - file_name = f"{service_name}_configuration.toml" |
| 410 | + file_name = f"service_{service_name}_configuration.toml" |
409 | 411 | config = get_base_service_config(service_name) |
410 | 412 |
|
411 | 413 | # Create service configurations |
@@ -437,7 +439,7 @@ def create_mirror_configuration( |
437 | 439 | shadow_versions (List[str], optional): List of versions of the shadow |
438 | 440 | services. Defaults to None. |
439 | 441 | """ |
440 | | - file_name = f"{name}_configuration.toml" |
| 442 | + file_name = f"service_{name}_configuration.toml" |
441 | 443 | config = get_base_service_config(name) |
442 | 444 |
|
443 | 445 | shadow_versions = shadow_versions or [] |
@@ -465,7 +467,7 @@ def remove_service_configuration(name: str, version: str): |
465 | 467 | version (str): Service version |
466 | 468 | """ |
467 | 469 | service_name = f"{name}_{version}" |
468 | | - file_name = f"{service_name}_configuration.toml" |
469 | | - mirror_file_name = f"{name}_configuration.toml" |
| 470 | + file_name = f"service_{service_name}_configuration.toml" |
| 471 | + mirror_file_name = f"service_{name}_configuration.toml" |
470 | 472 | remove_dynamic_configuration(file_name) |
471 | 473 | remove_dynamic_configuration(mirror_file_name) |
0 commit comments