fix(dev): 워커 CP 오분류 수정 + 마법사 워커 수 질문(기본1) + 템플릿 workers:1 — 0.22.1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -369,7 +369,8 @@ def _h_kube(action: str, params: dict) -> dict:
|
||||
except (ValueError, ZeroDivisionError, TypeError):
|
||||
pass
|
||||
out.append({
|
||||
"name": name, "roles": roles or ["control-plane"], "joined": ready, "ready": ready,
|
||||
# kind 워커는 node-role 라벨이 없음 → role 없으면 worker(과거 control-plane fallback 은 워커를 CP 로 오분류).
|
||||
"name": name, "roles": roles or ["worker"], "joined": ready, "ready": ready,
|
||||
"pending": False, "maas_status": None, # kind 노드 — MAAS 프로비저닝 개념 없음
|
||||
"phase": "Ready" if ready else "NotReady", # NodeMetricDTO.phase(필수) — 상태 배지
|
||||
"cpu_cap": round(_cpu_m(cap.get("cpu")) / 1000.0, 2), "cpu_alloc": cpu_alloc,
|
||||
|
||||
Reference in New Issue
Block a user