Contributing a template
A catalogue item is one single-purpose Argo WorkflowTemplate, its metadata and the schema of its parameters. Items are authored in the catalogue repository and vendored into Dagweave at a pinned commit.
Add an item
- Create
catalog/<item-id>/in the catalogue repository. The directory name is the item id and the WorkflowTemplatemetadata.name. - Write
template.yaml:apiVersion: argoproj.io/v1alpha1,kind: WorkflowTemplate, anentrypoint, and the user-facing parameters asinputs.parametersof the entrypoint template. - Write
metadata.yaml:id,title,description,category, semverversion,imageRefsand achangeloglist, newest first, whose top entry is the current version. - Write
config.schema.json, a JSON Schema whose property names are the template's parameter names. Give each a description, and an example for the required ones. - Pin every image by digest and put the human tag in a comment on the line above, for example
# curlimages/curl:8.23.0. - Open a pull request. Once it is merged, bumping the pin in Dagweave's
catalog/PINNED_SHApublishes it on this site.
What it must pass
- Required metadata: id, title, description, category and a semver version, with the id equal to the template name.
- The template parses strictly as an Argo WorkflowTemplate, with an entrypoint that exists.
- Every image is pinned by
@sha256:digest. - The changelog has an entry for the item's version, and the versions run newest first.
- The config schema is valid JSON and describes the template's parameters.
The Dagweave side of this is go test ./catalog/..., which runs these checks on the vendored bundle. The catalogue repository runs make check before merge.
Releasing a change
Bump the item's version for any change to its template, schema or images, in metadata.yaml, the dagweave.io/catalog-version annotation and a new changelog entry.