ソースを参照

add route to execute to prevent conflict

Ajay Tripathy 4 年 前
コミット
ee6c36d5e8
1 ファイル変更1 行追加0 行削除
  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)