forked from JointCloud/pcm-coordinator
新增提交任务接口增加非必填
This commit is contained in:
parent
2e52eb0850
commit
afa3fa42e1
|
@ -177,8 +177,8 @@ type deleteTaskReq {
|
|||
type commitTaskReq{
|
||||
Name string `json:"name"`
|
||||
NsID string `json:"nsID"`
|
||||
Replicas int64 `json:"replicas"`
|
||||
MatchLabels map[string]string `json:"matchLabels"`
|
||||
Replicas int64 `json:"replicas,optional"`
|
||||
MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||
YamlList []string `json:"yamlList"`
|
||||
}
|
||||
|
||||
|
|
|
@ -159,8 +159,8 @@ type DeleteTaskReq struct {
|
|||
type CommitTaskReq struct {
|
||||
Name string `json:"name"`
|
||||
NsID string `json:"nsID"`
|
||||
Replicas int64 `json:"replicas"`
|
||||
MatchLabels map[string]string `json:"matchLabels"`
|
||||
Replicas int64 `json:"replicas,optional"`
|
||||
MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||
YamlList []string `json:"yamlList"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue