mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-07 05:22:39 +00:00
Add new waiter (#306)
Add new waiter SUMMARY This refactors the waiter logic from common.py into a separate module. ISSUE TYPE COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: None <None> Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
This commit is contained in:
63
tests/unit/module_utils/fixtures/pods.yml
Normal file
63
tests/unit/module_utils/fixtures/pods.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
---
|
||||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
namespace: test-1
|
||||
name: pod-1
|
||||
spec:
|
||||
containers:
|
||||
- image: busybox
|
||||
name: busybox
|
||||
status:
|
||||
containerStatuses:
|
||||
- name: busybox
|
||||
ready: true
|
||||
conditions:
|
||||
- type: "www.example.com/gate"
|
||||
status: "True"
|
||||
---
|
||||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
namespace: test-1
|
||||
name: pod-2
|
||||
spec:
|
||||
containers:
|
||||
- image: busybox
|
||||
name: busybox
|
||||
---
|
||||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
namespace: test-1
|
||||
name: pod-3
|
||||
spec:
|
||||
containers:
|
||||
- image: busybox
|
||||
name: busybox
|
||||
status:
|
||||
phase: Pending
|
||||
conditions:
|
||||
- type: "www.example.com/gate"
|
||||
status: "Unknown"
|
||||
containerStatuses:
|
||||
- name: busybox
|
||||
ready: true
|
||||
---
|
||||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
namespace: test-1
|
||||
name: pod-4
|
||||
spec:
|
||||
containers:
|
||||
- image: busybox
|
||||
name: busybox
|
||||
status:
|
||||
phase: Pending
|
||||
conditions:
|
||||
- type: "www.example.com/other"
|
||||
status: "Unknown"
|
||||
containerStatuses:
|
||||
- name: busybox
|
||||
ready: true
|
||||
Reference in New Issue
Block a user