diff --git a/api/desc/core/pcm-core.api b/api/desc/core/pcm-core.api index 1ef8df44..d19f7f95 100644 --- a/api/desc/core/pcm-core.api +++ b/api/desc/core/pcm-core.api @@ -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"` } diff --git a/api/internal/types/types.go b/api/internal/types/types.go index d1071238..559424c5 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -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"` }