Explorar o código

add route to execute to prevent conflict

Ajay Tripathy %!s(int64=4) %!d(string=hai) anos
pai
achega
ee6c36d5e8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/cmd/costmodel/costmodel.go

+ 1 - 0
pkg/cmd/costmodel/costmodel.go

@@ -26,6 +26,7 @@ func Execute(opts *CostModelOpts) error {
 
 	rootMux := http.NewServeMux()
 	a.Router.GET("/healthz", Healthz)
+	a.Router.GET("/allocation/summary", a.ComputeAllocationHandlerSummary)
 	rootMux.Handle("/", a.Router)
 	rootMux.Handle("/metrics", promhttp.Handler())
 	handler := cors.AllowAll().Handler(rootMux)