Controller to not touch osup if possible

This commit is contained in:
2026-04-23 19:05:07 +08:00
parent 9eba55e7ee
commit 4549b9d167
6 changed files with 25 additions and 107 deletions

View File

@@ -73,13 +73,13 @@ func (s *Server) Initialize() {
ws.Consumes(restful.MIME_JSON)
ws.Produces(restful.MIME_JSON)
ws.Route(ws.GET("/status").To(s.queryStatus).
ws.Route(ws.GET("/healthz").To(s.queryHealthz).
Doc("Return basic controller status"))
s.restfulCont.Add(ws)
}
func (s *Server) queryStatus(request *restful.Request, response *restful.Response) {
func (s *Server) queryHealthz(request *restful.Request, response *restful.Response) {
resp := StatusResponse{
OK: true,
Service: "monok8s-controller",