---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: litmus-cstor-memcheck-
  namespace: litmus
spec:
  template:
    metadata:
      labels:
        name: litmus
        app: memcheck-cstor-test
    spec:
      serviceAccountName: litmus
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        imagePullPolicy: IfNotPresent
        env: 
          - name: ANSIBLE_STDOUT_CALLBACK
            value: default
 
          - name: APP_LABEL
            value: 'name=prometheus'

          - name: APP_PVC
            value: 'prometheus-claim'

          - name: APP_NAMESPACE
            value: app-prometheus

          - name: TARGET_NAMESPACE
            value: openebs

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