zfs-localpv/e2e-tests/experiments/functional/zfs-controller-high-availability/run_e2e_test.yml
Aman Gupta 4e73638b5a
feat(e2e-test): Add e2e-tests for zfs-localpv (#298)
Signed-off-by: w3aman <aman.gupta@mayadata.io>
2021-06-09 21:21:39 +05:30

30 lines
No EOL
1,008 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
generateName: zfs-controller-high-availability-
namespace: e2e
spec:
template:
metadata:
labels:
test: zfs-controller-high-availability
spec:
serviceAccountName: e2e
restartPolicy: Never
containers:
- name: ansibletest
image: openebs/zfs-localpv-e2e:ci
imagePullPolicy: IfNotPresent
env:
- name: ANSIBLE_STDOUT_CALLBACK
value: default
# This is the namespace where the zfs driver created all its resources including zvol.
# By default it is in openebs namespace. If we changed it at the time of zfs-driver provisioning
# give that namespace name here for the value of this env.
- name: ZFS_OPERATOR_NAMESPACE
value: 'openebs'
command: ["/bin/bash"]
args: ["-c", "ansible-playbook ./e2e-tests/experiments/functional/zfs-controller-high-availability/test.yml -i /etc/ansible/hosts -vv; exit 0"]