---
pipeline:
  name: test_copy_calibration
transform:
  image: registry.access.redhat.com/ubi8/ubi-minimal:8.3
  cmd: ["/bin/bash"]
  stdin:
  - "#!/bin/bash"
  - "# Recopy all calibration files for a source type into its calibration repo"
  - "pachctl start commit test_calibration@master"
  - "pachctl delete file -r test_calibration@master:/"
  - "pachctl copy file cval_to_pachyderm_loader@master:/li191r test_calibration@master:/li191r"
  - "pachctl finish commit test_calibration@master"
input:
  pfs:
    repo: li191r_cron_daily_and_date_control_tick
    glob: /*
    empty_files: true
resource_requests:
  memory: 64M
  cpu: 0.5
autoscaling: true
scheduling_spec:
  node_selector:
    cloud.google.com/gke-ephemeral-storage-local-ssd: "true"
    nodepool.neonscience.org/pipeline: "yes"
    cloud.google.com/gke-spot: "true"
pod_spec: |-
  { "tolerations": [
    {
      "key": "nodepool.neonscience.org/pipeline",
      "operator": "Exists"
    },
    {
      "effect": "NoSchedule",
      "key": "cloud.google.com/gke-spot",
      "operator": "Exists"
    }  
  ] }
pod_patch: |-
  [
    { "op": "replace",
      "path":"/containers/1/resources/requests/memory",
      "value":"100M"
    },
    { "op": "replace",
      "path": "/containers/1/resources/requests/cpu",
      "value": "0.1"
    }
  ]
