Adds a wait example to k8s.py (#386)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Timothy Appnel
2021-03-18 05:18:07 -04:00
committed by GitHub
parent 39660dd40e
commit 5fc3dd02bf

View File

@@ -221,6 +221,23 @@ EXAMPLES = r'''
community.kubernetes.k8s:
state: present
src: ~/metrics-server.yaml
# Wait for a Deployment to pause before continuing
- name: Pause a Deployment.
community.kubernetes.k8s:
definition:
apiVersion: apps/v1
kind: Deployment
metadata:
name: example
namespace: testing
spec:
paused: True
wait: yes
wait_condition:
type: Progressing
status: Unknown
reason: DeploymentPaused
'''
RETURN = r'''