From 7ca15fe1a59074ad00c1649dd1043ff95d8983c7 Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Wed, 8 Oct 2025 12:41:15 +0200 Subject: [PATCH] Add readiness endpoint and clear adminKey in Helm values --- api/main.py | 8 ++++++++ helm/api7ee-demo-k8s/values.yaml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/main.py b/api/main.py index a6b41af..cfdecf0 100644 --- a/api/main.py +++ b/api/main.py @@ -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(): diff --git a/helm/api7ee-demo-k8s/values.yaml b/helm/api7ee-demo-k8s/values.yaml index 0683993..3ffbb52 100644 --- a/helm/api7ee-demo-k8s/values.yaml +++ b/helm/api7ee-demo-k8s/values.yaml @@ -211,7 +211,7 @@ api7: gateway: # Use the actual DP Manager service for admin API adminUrl: http://api7ee3-0-1759339083-dp-manager.api7ee.svc.cluster.local:7900 - adminKey: "edd1c9f034335f136f87ad84b625c8f1" # Change this! + adminKey: "" # Change this! group: default # Gateway service for traffic routing gatewayService: gateway-0-1759393614-gateway