변환 yaml 수정

This commit is contained in:
2025-12-31 08:42:06 +09:00
parent 35d9db7452
commit 157b9858ca
4 changed files with 81 additions and 1 deletions

View File

@@ -178,7 +178,7 @@ def save_split(data, out_dir):
rendered = item.pop("_rendered_annotations", "")
name = item["metadata"]["name"]
namespace = item["metadata"].get("namespace", "default")
path = Path(out_dir) / f"{namespace}_{name}.yaml"
path = Path(out_dir) / f"{namespace}__{name}.yaml"
with open(path, "w") as f:
yaml.dump(item, f)