Skip to content

Commit fe88e3d

Browse files
committed
docs: add until example to k8s_info
I would liked to have an example like this when I was using the documentation.
1 parent 7cdf0d0 commit fe88e3d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plugins/modules/k8s_info.py

+12
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,18 @@
119119
namespace: default
120120
wait_sleep: 10
121121
wait_timeout: 360
122+
123+
- name: Wait for OpenShift bootstrap to complete
124+
kubernetes.core.k8s_info:
125+
kind: ConfigMap
126+
name: bootstrap
127+
namespace: kube-system
128+
register: ocp_bootstrap_status
129+
until: ocp_bootstrap_status.resources | length > 0 and
130+
(ocp_bootstrap_status.resources[0].data.status is defined and
131+
ocp_bootstrap_status.resources[0].data.status == 'complete')
132+
retries: 60
133+
delay: 15
122134
"""
123135

124136
RETURN = r"""

0 commit comments

Comments
 (0)