apiVersion: batch/v1
kind: Job
metadata:
  name: e2e-test
spec:
  backoffLimit: 0
  template:
    metadata:
      labels:
        app: e2e-test
    spec:
      containers:
      - name: tests
        image: e2e-test-image
        command:
          - bash
          - test.sh
      restartPolicy: Never