Skip to content

Commit 8588365

Browse files
committed
docs: template filters and metadata
1 parent 28ada01 commit 8588365

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
# Workflow Template Filters & Metadata
3+
4+
Workflow templates can take extra metadata, often in the form of labels in their manifests.
5+
These labels are used by the system to apply filters when viewing workflow templates.
6+
7+
Some are labels, some are annotations - see the table below for a list of useful
8+
tags, and where to use them.
9+
10+
All labels are optional, but we suggest you add as many as possible for full filtering and viewing.
11+
12+
## Filters
13+
| Filter | Definition | Location in Manifest |
14+
|--------|------------|------|
15+
| workflows.diamond.ac.uk/science-group-*extension* | The science group who authored the template. *Extension* can be one of: <ul><li>bio-cryo-imaging</li><li>condensed-matter</li><li>crystallography</li><li>imaging</li><li>magnetic-materials</li><li>mx</li><li>spectroscopy</li><li>surfaces</li><ul/> | Label |
16+
17+
### In development
18+
19+
Beamline - filter templates based on the beamline(s) that they are associated with.
20+
21+
Custom tags - filter templates based on a custom tag. Possibly experimental technique?
22+
23+
## Metadata
24+
| Tag | Definition | Location in Manifest |
25+
|--------|------------|------|
26+
| workflows.argoproj.io/title | The title of the workflow as shown in the UI. | Annotation |
27+
| workflows.argoproj.io/description | A description of what the template will do. | Annotation |
28+
| workflows.diamond.ac.uk/repository | Source repository for template. | Annotation |
29+
| workflows.diamond.ac.uk/ui-schema | Json-forms schema describing template UI | Annotation |
30+
| workflows.diamond.ac.uk/parameter-schema | Json-forms schema describing parameters | Annotation |
31+
32+
An example snippet is provided below to demonstrate how to add these labels:
33+
34+
```yaml
35+
apiVersion: argoproj.io/v1alpha1
36+
kind: ClusterWorkflowTemplate
37+
metadata:
38+
name: conditional-steps
39+
labels:
40+
workflows.diamond.ac.uk/science-group-examples: "true"
41+
workflows.argoproj.io/title: conditional-steps
42+
workflows.argoproj.io/description: |
43+
Run steps based on conditions from previous outputs.
44+
workflows.diamond.ac.uk/repository: "https://github.com/DiamondLightSource/workflows"
45+
spec:
46+
entrypoint: workflow-entry
47+
```

0 commit comments

Comments
 (0)