apiVersion: batch/v1
kind: Job
metadata:
  name: TEST_JOB_NAME_PLACEHOLDER
spec:
  template:
    spec:
      serviceAccount: noobaa-tests-account
      containers:
      - name: noobaa-test
        resources:
          # https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
          requests:
            cpu: "500m"
            memory: "1Gi"
          limits:
            cpu: "2"
            memory: "8Gi"
        image: TESTER_IMAGE_PLACEHOLDER
        imagePullPolicy: Always
        workingDir: /noobaa-core
        args:
        - node
        - ./src/test/framework/test_env_builder_kubernetes.js
        - --image
        - "NOOBAA_IMAGE_PLACEHOLDER"
        - --namespace_prefix 
        - "NAMESPACE_PREFIX_PLACEHOLDER"
        - --tests_list
        - "TESTS_LIST_PLACEHOLDER"
        - --concurrency
        - "TESTS_CONCURRENCY_PLACEHOLDER"
        - --DELETE_ON_FAIL_PLACEHOLDER
        env:
          - name: CONTAINER_PLATFORM
            value: KUBERNETES
      restartPolicy: Never
  backoffLimit: 0
