zfs-localpv/e2e-tests/utils/k8s/fetch_app_pod.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

13 lines
307 B
YAML

---
#Fetching the details of the application pod
- name: Getting the {{ application_name }} POD name
k8s_facts:
kind: Pod
namespace: "{{ app_ns }}"
label_selectors:
- "{{ app_label }}"
register: pod_name
- debug:
msg: "{{ pod_name | json_query('resources[*].metadata.name') }}"