apiVersion: batch/v1
kind: Job
metadata:
  generateName: zv-properties-verify-
  namespace: litmus
spec:
  template:
    metadata:
      labels:
        name: zv-properties-verify
    spec:
      serviceAccountName: litmus
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        imagePullPolicy: IfNotPresent
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            #value: log_plays  #value: actionable
            value: default

          - name: APP_NAMESPACE  ## Namespace in which application is deployed
            value: ''

          - name: OPERATOR_NAMESPACE ## Namespace in which all the resources created by zfs driver will be present
            value: ''                ## for e.g. zfsvolume (zv) will be in this namespace         
         
          - name: APP_PVC            ## PersistentVolumeClaim Name for the application
            value: ''
          
        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./experiments/functional/zfs-LocalPV/zv-properties-verify/test.yml -i /etc/ansible/hosts -vv; exit 0"]

