Add namespace dropdown (#67)

* add get namespace endpoint

* add namespace dropdown

* misc fix
This commit is contained in:
Duy Nguyen
2022-11-06 15:19:32 +02:00
committed by GitHub
parent ef31263797
commit 612352d69f
6 changed files with 61 additions and 11 deletions

View File

@@ -2,14 +2,15 @@ package dashboard
import (
"embed"
"net/http"
"os"
"path"
"github.com/gin-gonic/gin"
"github.com/komodorio/helm-dashboard/pkg/dashboard/handlers"
"github.com/komodorio/helm-dashboard/pkg/dashboard/subproc"
"github.com/komodorio/helm-dashboard/pkg/dashboard/utils"
log "github.com/sirupsen/logrus"
"net/http"
"os"
"path"
)
//go:embed static/*
@@ -106,6 +107,7 @@ func configureKubectls(api *gin.RouterGroup, data *subproc.DataLayer) {
api.GET("/contexts", h.GetContexts)
api.GET("/resources/:kind", h.GetResourceInfo)
api.GET("/describe/:kind", h.Describe)
api.GET("/namespaces", h.GetNameSpaces)
}
func configureStatic(api *gin.Engine) {