Merge pull request #3383 from shaowenchen/add_annotations_to_pipeline
feature: add annotations to pipelines for getting syncstatus
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -19,6 +19,7 @@ bin/
|
||||
|
||||
# Vscode files
|
||||
.vscode/
|
||||
__debug_bin
|
||||
|
||||
# OSX trash
|
||||
.DS_Store
|
||||
|
||||
@@ -112,7 +112,8 @@ func (h *ProjectPipelineHandler) ListPipelines(req *restful.Request, resp *restf
|
||||
} else {
|
||||
pipelineMap[pipeline.Name] = i
|
||||
pipelineList.Items[i] = clientDevOps.Pipeline{
|
||||
Name: pipeline.Name,
|
||||
Name: pipeline.Name,
|
||||
Annotations: pipeline.Annotations,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,8 +31,9 @@ type PipelineList struct {
|
||||
|
||||
// GetPipeline & SearchPipelines
|
||||
type Pipeline struct {
|
||||
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 {
|
||||
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." `
|
||||
Links struct {
|
||||
Self struct {
|
||||
Class string `json:"_class,omitempty"`
|
||||
Href string `json:"href,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user