---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: cstor-cspc-pool-scaleup-
  namespace: litmus
spec:
  template:
    metadata:
      name: litmus
      labels:
        app: cstor-cspc-pool-scaleup
    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

            # Provide POOL_NAME to expand
          - name: POOL_NAME
            value: ""

           # Provide the value for POOL_TYPE to expand
           # stripe,mirror,raidz1,raidz2
          - name: POOL_TYPE
            value: ""

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

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