change health check endpoint to /health

This commit is contained in:
starryskymeow
2025-07-05 07:18:21 +08:00
parent 9cf6b6777a
commit 1a690723a1

View File

@@ -12,7 +12,7 @@ func NewServer(clientset *kubernetes.Clientset) *gin.Engine {
// Create a new handler with the clientset
h := NewHandler(clientset)
// Health check endpoint
r.GET("/healthz", func(c *gin.Context) {
r.GET("/health", func(c *gin.Context) {
c.JSON(200, gin.H{
"status": "ok",
})