mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-24 11:28:40 +08:00
【修改】k8s 配置
This commit is contained in:
13
apps/devops/entity/k8s/job.go
Normal file
13
apps/devops/entity/k8s/job.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package k8s
|
||||
|
||||
type JobData struct {
|
||||
Namespace string `json:"namespace" binding:"required"`
|
||||
Name string `json:"name" binding:"required"`
|
||||
}
|
||||
|
||||
type ScaleJob struct {
|
||||
Namespace string `json:"namespace" binding:"required"`
|
||||
Name string `json:"name" binding:"required"`
|
||||
// Job并行运行的Pod数量
|
||||
Number *int32 `json:"number" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user