mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
【修改】k8s 配置
This commit is contained in:
3
main.go
3
main.go
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"pandax/apps/devops/services/k8s/Init"
|
||||
"pandax/apps/job/jobs"
|
||||
"pandax/base/config"
|
||||
"pandax/base/ctx"
|
||||
@@ -13,6 +15,7 @@ import (
|
||||
func main() {
|
||||
global.Db = starter.GormInit(config.Conf.Server.DbType)
|
||||
initialize.InitTable()
|
||||
Init.GetK8sClient(context.Background(), "./kubeconfig")
|
||||
// gin后置 函数
|
||||
ctx.UseAfterHandlerInterceptor(middleware.OperationHandler)
|
||||
// gin前置 函数
|
||||
|
||||
Reference in New Issue
Block a user