fix(console): 로컬 앱 상세 데이터소스 연결(바인딩) 표시 — dev deploy binds 리포트 + ServiceBinding 싱크. 0.21.2

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-30 17:55:02 +09:00
parent d1481486ee
commit d6532ad988
2 changed files with 5 additions and 2 deletions

View File

@ -540,7 +540,10 @@ def _report_to_console(project: str, reqs: list, wls: list) -> None:
"secret": f"yak-dev-src-{sanitize(r['name'])}"} for r in reqs],
"workloads": [{"name": sanitize(w["name"]), "image": w["image"].replace("${TAG}", TAG),
"hosts": _disp_hosts(project, w), "port": int(w.get("port", 8080)),
"path": (w.get("expose", {}) or {}).get("path", "/") or "/"} for w in wls],
"path": (w.get("expose", {}) or {}).get("path", "/") or "/",
# 바인딩(별칭→소스) → 콘솔이 ServiceBinding 으로 저장 → 앱 카드 '연결' 패널 표시
"binds": [{"alias": b["alias"], "source": b["source"]} for b in (w.get("binds") or [])]}
for w in wls],
}
body = json.dumps({"name": name, "displayName": name, "report": report}).encode()
req = urllib.request.Request(url.rstrip("/") + "/api/v1/clusters/local", data=body, method="POST",