---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: localpv-selected-device-
  namespace: litmus
spec:
  template:
    metadata:
      name: litmus
      labels:
        app: localpv-selected-device
    spec:
      serviceAccountName: litmus
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        imagePullPolicy: IfNotPresent

        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            #value: log_plays, actionable, default
            value: default

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

          - name: BD_TAG
            value: 'e2e'

          - name: APP_NAMESPACE
            value: ''

          - name: PVC
            value: ''

        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./experiments/functional/localpv/localpv-provisioning-selected-device/test.yml -i /etc/ansible/hosts -v; exit 0"]
