提交 f6bcdc50 编写于 作者: S shaowenchen

feature: add annotations to pipelines for getting syncstatus

Signed-off-by: Nshaowenchen <mail@chenshaowen.com>
上级 000d3097
...@@ -19,6 +19,7 @@ bin/ ...@@ -19,6 +19,7 @@ bin/
# Vscode files # Vscode files
.vscode/ .vscode/
__debug_bin
# OSX trash # OSX trash
.DS_Store .DS_Store
......
...@@ -113,6 +113,7 @@ func (h *ProjectPipelineHandler) ListPipelines(req *restful.Request, resp *restf ...@@ -113,6 +113,7 @@ func (h *ProjectPipelineHandler) ListPipelines(req *restful.Request, resp *restf
pipelineMap[pipeline.Name] = i pipelineMap[pipeline.Name] = i
pipelineList.Items[i] = clientDevOps.Pipeline{ pipelineList.Items[i] = clientDevOps.Pipeline{
Name: pipeline.Name, Name: pipeline.Name,
Annotations: pipeline.Annotations,
} }
} }
} }
......
...@@ -31,6 +31,7 @@ type PipelineList struct { ...@@ -31,6 +31,7 @@ type PipelineList struct {
// GetPipeline & SearchPipelines // GetPipeline & SearchPipelines
type Pipeline struct { type Pipeline struct {
Annotations map[string]string `json:"annotations,omitempty" description:"Add annotations from crd" `
Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability." ` Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability." `
Links struct { Links struct {
Self struct { Self struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册