Issue #10: Attempt setting up a KinD cluster in CI workflow.g

This commit is contained in:
Jeff Geerling
2020-02-12 12:07:19 -06:00
parent cec46a000e
commit 1200460f26
6 changed files with 106 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
---
driver:
name: delegated
options:
managed: false
login_cmd_template: 'docker exec -ti {instance} bash'
ansible_connection_options:
ansible_connection: docker
lint:
name: yamllint
options:
config-data:
line-length:
max: 160
platforms:
- name: instance-kind
provisioner:
name: ansible
log: true
lint: {}
inventory:
host_vars:
localhost:
ansible_python_interpreter: '{{ ansible_playbook_python }}'
env:
ANSIBLE_ROLES_PATH: ${ANSIBLE_ROLES_PATH}:../../tests/integration/targets
scenario:
name: default
test_sequence:
# - lint
- syntax
- converge
- idempotence
- verify

View File

@@ -0,0 +1,23 @@
---
- name: Converge
hosts: localhost
connection: local
gather_facts: false
collections:
- community.kubernetes
tasks:
- name: Testing.
k8s_info:
namespace: kube-system
kind: Pod
register: pod_list
- name: Testing listing.
debug:
msg: "{{ pod_list.resources | count }}"
- name: Include Kubernetes integration testing role.
include_role:
name: kubernetes