Dagweave catalog

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

  1. Create catalog/<item-id>/ in the catalogue repository. The directory name is the item id and the WorkflowTemplate metadata.name.
  2. Write template.yaml: apiVersion: argoproj.io/v1alpha1, kind: WorkflowTemplate, an entrypoint, and the user-facing parameters as inputs.parameters of the entrypoint template.
  3. Write metadata.yaml: id, title, description, category, semver version, imageRefs and a changelog list, newest first, whose top entry is the current version.
  4. 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.
  5. Pin every image by digest and put the human tag in a comment on the line above, for example # curlimages/curl:8.23.0.
  6. Open a pull request. Once it is merged, bumping the pin in Dagweave's catalog/PINNED_SHA publishes it on this site.

What it must pass

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.