Skip to content

Commit

Permalink
feat(api): 添加 ConfigMap 导入接口
Browse files Browse the repository at this point in the history
- 在 main.go 中添加了 ConfigMap 导入接口的路由
- 新增了 cm 包的导入,用于处理 ConfigMap 相关操作
weibaohui committed Dec 18, 2024

Verified

This commit was signed with the committer’s verified signature.
rfratto Robert Fratto
1 parent cf31764 commit 8795e61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ import (
"github.com/gin-gonic/gin"
"github.com/weibaohui/k8m/pkg/cb"
"github.com/weibaohui/k8m/pkg/controller/chat"
"github.com/weibaohui/k8m/pkg/controller/cm"
"github.com/weibaohui/k8m/pkg/controller/cronjob"
"github.com/weibaohui/k8m/pkg/controller/deploy"
"github.com/weibaohui/k8m/pkg/controller/doc"
@@ -153,6 +154,8 @@ func main() {

// k8s rs
api.POST("/replicaset/restart/ns/:ns/name/:name", rs.Restart)
// k8s configmap
api.POST("/configmap/ns/:ns/name/:name/import", cm.Import)

// k8s cronjob
api.POST("/cronjob/pause/ns/:ns/name/:name", cronjob.Pause)

0 comments on commit 8795e61

Please sign in to comment.