Metadata
Use the metadata
section to provide uniquely identify pipeline resources. Example configuration defines the pipeline namespace:
1 kind: pipeline
2 type: kubernetes
3 name: default
4
5 metadata:
6 namespace: default
7
8 steps:
9 - name: build
10 image: golang
11 commands:
12 - go build
13 - go test
Example with annotations:
1 kind: pipeline
2 type: kubernetes
3 name: default
4
5 metadata:
6 namespace: default
7 annotations:
8 key1: value1
9 key2: value2
Example with labels:
1 kind: pipeline
2 type: kubernetes
3 name: default
4
5 metadata:
6 namespace: default
7 labels:
8 key1: value1
9 key2: value2