Skip to content

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


AMPEL-argo

Translates Ampel analysis schemas into Argo Workflows templates.

Usage

(for the deployment at https://ampel-dev.ia.zeuthen.desy.de)

  1. Obtain an API token from the Ampel dashboard
  2. Validate an Ampel jobfile with
curl -k -X 'POST' \
  'https://ampel-dev.ia.zeuthen.desy.de/jobs/v1/lint' \
  -H 'accept: application/json'
  -H "Authorization: Bearer $AMPEL_TOKEN" \
  -H 'Content-Type: application/json' \
  -d "$(yq your_jobfile.yml -o json)" \
  | yq . -P

where AMPEL_TOKEN is your API token from step 1 3. Create an Argo workflow template from your jobfile (skipping validation)

curl -k -X 'POST' \
  'https://ampel-dev.ia.zeuthen.desy.de/jobs/v1?validate=0' \
  -H 'accept: application/json'
  -H "Authorization: Bearer $AMPEL_TOKEN" \
  -H 'Content-Type: application/json' \
  -d "$(yq your_jobfile.yml -o json)" \
  | yq . -P
  1. Submit a job from your template using the Argo UI (alternatively, the Argo CLI)

About

Argo Workflows translation layer

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages