mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-07 13:32:37 +00:00
Adds a wait example to k8s.py (#386)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -221,6 +221,23 @@ EXAMPLES = r'''
|
|||||||
community.kubernetes.k8s:
|
community.kubernetes.k8s:
|
||||||
state: present
|
state: present
|
||||||
src: ~/metrics-server.yaml
|
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'''
|
RETURN = r'''
|
||||||
|
|||||||
Reference in New Issue
Block a user