---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: bd-replacement-with-claimed-bd-
  namespace: e2e
spec:
  template:
    metadata:
      labels:
        app: bd-replacement-with-claimed-bd
    spec:
      serviceAccountName: e2e
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/cstor-csi-e2e:ci
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            value: default

            # Namespace where the OpenEBS components are deployed
          - name: OPERATOR_NS
            value: ""

            # Name of the Pool to perform the block device Replacement 
          - name: POOL_NAME
            value: ""

        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./e2e-tests/experiments/functional/cspc-pool/fail_bd_replacement_with_claimed_bd/test.yml -i /etc/ansible/hosts -v; exit 0"]

