diff --git a/dist/go/pipeline.go b/dist/go/pipeline.go index 7164e47..ad53a32 100644 --- a/dist/go/pipeline.go +++ b/dist/go/pipeline.go @@ -21,6 +21,7 @@ type Pipeline struct { Stages []*Stage `json:"stages,omitempty"` Inputs map[string]*Input `json:"inputs,omitempty"` Options *Default `json:"options,omitempty"` + Labels map[string]string `json:"labels,omitempty"` } type PipelineV1 struct { diff --git a/dist/schema.json b/dist/schema.json index 28cedd3..0b70042 100644 --- a/dist/schema.json +++ b/dist/schema.json @@ -167,6 +167,12 @@ "options": { "$ref": "#/definitions/Default", "description": "Options defines global configuration options." + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } } }, "required": [ diff --git a/schema/pipeline.yaml b/schema/pipeline.yaml index c9431a2..14c725a 100644 --- a/schema/pipeline.yaml +++ b/schema/pipeline.yaml @@ -19,6 +19,11 @@ properties: $ref: ./default.yaml description: Options defines global configuration options. + labels: + type: object + additionalProperties: + type: string + required: - stages