[Config Refactor][2/N] Pipeline + Deploy Config Schema (#2383)

Signed-off-by: lishunyang <lishunyang12@163.com>
Signed-off-by: reidliu41 <reid201711@gmail.com>
Signed-off-by: Alex Brooks <albrooks@redhat.com>
Co-authored-by: reidliu41 <reid201711@gmail.com>
Co-authored-by: xiaohajiayou <75477391+xiaohajiayou@users.noreply.github.com>
Co-authored-by: Alex Brooks <albrooks@redhat.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
authored and GitHub committed 2026-04-19 14:36:00 +12:00
1 parent a683b1dd75
commit a3903810fe
104 files changed
+3959 -3814

No files matched your search

@@ -206,6 +206,19 @@ def load_omni_transfer_config(
if config_dict is None:
return None
# Normalize new-schema (top-level ``connectors`` + ``stages``) into the
# legacy ``runtime.connectors`` + ``stage_args`` shape the parser reads.
if "stages" in config_dict and "stage_args" not in config_dict:
normalized: dict[str, Any] = dict(config_dict)
runtime = dict(normalized.get("runtime") or {})
if "connectors" in normalized and "connectors" not in runtime:
runtime["connectors"] = normalized["connectors"]
if "edges" in normalized and "edges" not in runtime:
runtime["edges"] = normalized["edges"]
normalized["runtime"] = runtime
normalized["stage_args"] = normalized["stages"]
config_dict = normalized
# Parse connectors
connectors = {}
runtime_config = config_dict.get("runtime", {})