Skip to content

Commit

Permalink
try fix api myterminus
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLollipop committed Oct 24, 2024
1 parent 260370d commit 6782fb1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/apiserver/service/v1/handler_admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/emicklei/go-restful/v3"
"github.com/golang/glog"
helmtime "helm.sh/helm/v3/pkg/time"
"market/internal/appmgr"
"market/internal/appservice"
"market/internal/boltdb"
Expand All @@ -16,6 +13,10 @@ import (
"reflect"
"sort"
"strings"

"github.com/emicklei/go-restful/v3"
"github.com/golang/glog"
helmtime "helm.sh/helm/v3/pkg/time"
)

func (h *Handler) myterminus(req *restful.Request, resp *restful.Response) {
Expand Down Expand Up @@ -91,6 +92,9 @@ func (h *Handler) myterminus(req *restful.Request, resp *restful.Response) {
info.Version = infoMarket.Version
}

info.Progress = h.commonWatchDogManager.GetProgress(info.Name)
info.Progress = h.watchDogManager.GetProgress(info.Name)

if info.CfgType == constants.AppType {
//todo
info.CurVersion = appsMap[info.Name].Spec.Settings["version"]
Expand Down

0 comments on commit 6782fb1

Please sign in to comment.