Waiting for Kubernetes Objects

10 views
Skip to first unread message

kameshs

unread,
Jul 12, 2020, 4:50:12 AM7/12/20
to Ansible Project
While using `community.kubernetes.k8s` module, I am seeing that `wait: yes` is cause the resource creation to fail in case of  definition is a multi document yaml. Is there a way to wait for multi document k8s operations to complete ?

e.g.
```
- name: k8s apply crds
k8s:
state: present
definition: "{{ item.manifest | from_yaml_all | list }}"
wait: yes
loop:
- name: serving-core.yaml
manifest: "{{ lookup('file',knative_manifests_dir + '/serving-core.yaml')}}"
loop_control:
label: "{{item.name}}"
```
Reply all
Reply to author
Forward
0 new messages