mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-06-10 10:36:16 +00:00
Move wait logic out of raw and into common and use that logic in scale Fix a few broken wait condition cases highlighted by scaling up and down Move scale-related tests into dedicated test task file Additional service related tests
33 lines
675 B
YAML
33 lines
675 B
YAML
---
|
|
- name: Converge
|
|
hosts: localhost
|
|
connection: local
|
|
|
|
collections:
|
|
- community.kubernetes
|
|
|
|
vars_files:
|
|
- vars/main.yml
|
|
|
|
tasks:
|
|
- name: Verify cluster is working.
|
|
k8s_info:
|
|
namespace: kube-system
|
|
kind: Pod
|
|
register: pod_list
|
|
|
|
- name: Verify cluster has more than 5 pods running.
|
|
assert:
|
|
that: (pod_list.resources | count) > 5
|
|
|
|
- include_tasks: tasks/delete.yml
|
|
- include_tasks: tasks/scale.yml
|
|
- include_tasks: tasks/apply.yml
|
|
- include_tasks: tasks/waiter.yml
|
|
- include_tasks: tasks/full.yml
|
|
- include_tasks: tasks/exec.yml
|
|
- include_tasks: tasks/log.yml
|
|
|
|
roles:
|
|
- helm
|