mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 13:02:37 +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:
48
tests/unit/module_utils/fixtures/deployments.yml
Normal file
48
tests/unit/module_utils/fixtures/deployments.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: deploy-1
|
||||
namespace: test-1
|
||||
generation: 1
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: foo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: foo
|
||||
spec:
|
||||
containers:
|
||||
- image: busybox
|
||||
name: busybox
|
||||
status:
|
||||
availableReplicas: 2
|
||||
replicas: 2
|
||||
observedGeneration: 1
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: deploy-2
|
||||
namespace: test-1
|
||||
generation: 1
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: foo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: foo
|
||||
spec:
|
||||
containers:
|
||||
- image: busybox
|
||||
name: busybox
|
||||
status:
|
||||
availableReplicas: 1
|
||||
replicas: 2
|
||||
observedGeneration: 1
|
||||
Reference in New Issue
Block a user