Веб-UI FastAPI, REST API v1, интерактивный setup без env.example
- Дашборд (Jinja2 + static), управление кластерами kind, задания и kubeconfig. - API: health, stats, clusters CRUD, versions, jobs; документация app/docs/api_routes.md. - Docker Compose: том app, uvicorn reload, KIND_K8S_PATCH_KUBECONFIG по умолчанию 1. - setup_env_interactive.py: список переменных в скрипте, удалён env.example. - Makefile: явный префикс docker/podman; прочие правки CLI и ядра кластеров.
This commit is contained in:
+1
-10
@@ -25,15 +25,6 @@ def _configure_logging() -> None:
|
||||
logging.basicConfig(level=logging.INFO, format="%(levelname)s %(name)s: %(message)s")
|
||||
|
||||
|
||||
def _run(cmd: list[str]) -> int:
|
||||
p = subprocess.run(cmd, capture_output=True, text=True)
|
||||
if p.stdout:
|
||||
print(p.stdout, end="")
|
||||
if p.stderr:
|
||||
print(p.stderr, end="", file=sys.stderr)
|
||||
return p.returncode
|
||||
|
||||
|
||||
def _list_kind_clusters() -> list[str]:
|
||||
p = subprocess.run(["kind", "get", "clusters"], capture_output=True, text=True)
|
||||
if p.returncode != 0:
|
||||
@@ -51,7 +42,7 @@ def _interactive() -> None:
|
||||
CLUSTERS_DIR = clusters_dir()
|
||||
if not shutil.which("kind"):
|
||||
print("Не найден kind.", file=sys.stderr)
|
||||
print(" Через Docker: make -C kind-k8s-develop delete (или make delete из каталога репозитория).", file=sys.stderr)
|
||||
print(" Через Docker: make -C kind-k8s-develop docker up и удаление в веб-интерфейсе.", file=sys.stderr)
|
||||
sys.exit(127)
|
||||
|
||||
clusters = _list_kind_clusters()
|
||||
|
||||
Reference in New Issue
Block a user