15 lines
375 B
Go
15 lines
375 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// HealthzHandler is the technical liveness probe used by Runtime Manager
|
|
// and operator tooling. It returns 200 with {"status":"ok"} regardless
|
|
// of whether the engine has been initialised through POST /api/v1/init.
|
|
func HealthzHandler(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"status": "ok"})
|
|
}
|