# the code in this file is augmented by an ejs template
# and by loading the yaml into memory.
# some of these values will be replaced.
apiVersion: v1
kind: Pod
metadata: {}
spec:
  restartPolicy: Never
  containers:
    - name: job-executor
      image: ubuntu
      command:
        - bash
        - -c
        - |
          #/usr/bin/env bash
          echo "Starting $PASS_ARG"
          cur_count=0
          while true; do
              cur_count=$((cur_count + 1))
              if [ "$cur_count" -ge "$TIC_COUNT" ]; then
                  break
              fi
              date
              sleep 1
          done
      env:
        - name: TIC_COUNT
          value: "2"
