---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: e2e-jiva-csi-sc-provisioner-
  namespace: e2e
spec:
  template:
    metadata:
      name: e2e
      labels:
        name: jiva-csi-sc
    spec:
      serviceAccountName: e2e
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/jiva-csi-e2e:ci
        imagePullPolicy: IfNotPresent
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            value: default

          - name: REPLICA_SC
            value: "jiva-csi-sc"

          - name: REPLICA_COUNT
            value: "3"

          - name: ACTION
            value: provision

        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./e2e-tests/experiments/jiva-operator/jiva-csi-storage-policies/test.yml -i /etc/ansible/hosts -vv; exit 0"]
