/kubeui

Primary LanguageGo

基于Kubectl命令行的Dashboard

类似于kubectl proxy dashboard

目前仅仅实现了基于namespace分类的查看/编辑/删除secret

前端使用antd-admin修改而成,

编译后的前端文件,使用go-bindata-assetfs嵌入到二进制程序中,代码在router/bindata.go

后端框架使用kelly

重新编译前端

# 编译前端
npm run build

# 将前端生成的整个dist目录拷贝到当前Project根目录,并且重命令为frontend
cp */dist . && mv dist frontend

# 将前端代码打包到router/bindata.go
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
# go-bindata-assetfs -o router/bindata.go -pkg router ./frontend/...
go generate

# 重新编译
go build .