Add readiness endpoint and clear adminKey in Helm values
All checks were successful
Helm Chart Build / lint-only (push) Has been skipped
Helm Chart Build / build-helm (push) Successful in 8s
Build and Deploy / build-api (push) Successful in 43s
Build and Deploy / build-web (push) Successful in 1m1s

This commit is contained in:
d.viti
2025-10-08 12:41:15 +02:00
parent 1b31601543
commit 7ca15fe1a5
2 changed files with 9 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ from pydantic import BaseModel
import uvicorn
from datetime import datetime
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
from typing import Optional, List
import os
import httpx
@@ -60,6 +62,12 @@ async def health():
"""Health check endpoint"""
return {"status": "healthy", "service": "api", "timestamp": datetime.now().isoformat()}
# Readiness check
@app.get("/ready")
async def ready():
"""Readiness check endpoint"""
return {"status": "ready", "service": "api", "timestamp": datetime.now().isoformat()}
# Items endpoints
@app.get("/items", response_model=List[Item], tags=["Items"])
async def get_items():