From fdb2cda61a7bba7b77e7a91065032791810aebc1 Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Wed, 6 Dec 2023 21:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=90=E4=BA=A4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E9=9D=9E=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: afa3fa42e127a01c98d3a3f105d06eab7fac8dea --- api/desc/core/pcm-core.api | 4 ++-- api/internal/types/types.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"` }