zfs-localpv/e2e-tests/utils/k8s/fetch_app_pod.yml

14 lines
307 B
YAML
Raw Normal View History

---
#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') }}"