apiVersion: batch/v1
kind:       Job
metadata:
  name: crash-test-runner
  labels:
    app.kubernetes.io/name: crash-test
spec:
  # Fail-fast if the job fails.
  backoffLimit: 0
  template:
    metadata:
      labels:
        app.kubernetes.io/name: crash-test
    spec:
      restartPolicy:      Never
      serviceAccountName: crash-test-runner
      containers:
        - name:            runner
          image:           gazette/examples
          command:
            - integration.test
            - "-test.v"
            - "-test.count=10"
            - "-test.failfast"
