---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: e2e-memleak-test-
  namespace: e2e
spec:
  template:
    metadata:
      labels:
        name: e2e
        app: memleak-test
    spec:
      serviceAccountName: e2e
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        imagePullPolicy: IfNotPresent
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            value: default

          - name: PROVIDER_STORAGE_CLASS
            value: openebs-jiva-default

          - name: APP_NAMESPACE
            value: memleak

          - name: MEMORY_BM
            value: '800'

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

