apiVersion: batch/v1
kind: Job
metadata:
  generateName: zfspv-custom-topology-
  namespace: e2e
spec:
  template:
    metadata:
      labels:
        test: zfspv-custom-topology
    spec:
      serviceAccountName: e2e
      restartPolicy: Never

      containers:
      - name: ansibletest
        image: openebs/zfs-localpv-e2e:ci
        imagePullPolicy: IfNotPresent
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            value: default

          - name: APP_NAMESPACE
            value: 'custom-ns'

          - name: ZPOOL_NAME
            value: 'zfs-test-pool'

          - name: NODE_LABEL
            value: 'test=custom-topology'

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