---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: litmus-cstor-volume-replica-migration-
  namespace: litmus 
spec:
  template:
    metadata:
      name: litmus
      labels:
        app: cvr-migration
   
    spec:
      serviceAccountName: litmus
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        imagePullPolicy: Always

        env: 
          - name: ANSIBLE_STDOUT_CALLBACK 
            value: default

          - name: APP_NAMESPACE
            value: ""
          
          - name: PVC_NAME
            value: ""

          - name: OPERATOR_NS
            value: ""

        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./experiments/functional/cstor-volume-migration/test.yml -i /etc/ansible/hosts -v; exit 0"]
