Skip to content

Commit

Permalink
Fix resource status not enhanced for calls to /api/k8s/{kind}/get rou…
Browse files Browse the repository at this point in the history
…te (#517)
  • Loading branch information
alessandrodetta committed Feb 28, 2024
1 parent 274f1cd commit aac7e7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/dashboard/handlers/kubeHandlers.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package handlers

import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/joomcode/errorx"
"github.com/komodorio/helm-dashboard/pkg/dashboard/utils"
log "github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/api/errors"
v12 "k8s.io/apimachinery/pkg/apis/testapigroup/v1"
"k8s.io/utils/strings/slices"
"net/http"
)

const Unknown = "Unknown"
Expand Down Expand Up @@ -56,7 +57,7 @@ func (h *KubeHandler) GetResourceInfo(c *gin.Context) {
return
}

EnhanceStatus(res, nil)
res.Status = *EnhanceStatus(res, nil)

c.IndentedJSON(http.StatusOK, res)
}
Expand Down

0 comments on commit aac7e7d

Please sign in to comment.