Skip to content

Commit

Permalink
Containerd: make molecule testing more relevant
Browse files Browse the repository at this point in the history
* replace ubuntu18 with ubuntu20
* add centos8 and debian11 to molecule tests
* run kubernetes/preinstall role to ensure relevancy
  of test including dependency packages
  • Loading branch information
cristicalin committed Oct 6, 2021
1 parent 8e0b280 commit b6e9138
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
24 changes: 21 additions & 3 deletions roles/container-engine/containerd/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,30 @@ lint: |
set -e
yamllint -c ../../../.yamllint .
platforms:
- name: ubuntu18
box: generic/ubuntu1804
cpus: 2
- name: ubuntu20
box: generic/ubuntu2004
cpus: 1
memory: 1024
groups:
- kube_control_plane
- kube_node
- k8s_cluster
- name: debian11
box: generic/debian11
cpus: 1
memory: 1024
groups:
- kube_control_plane
- kube_node
- k8s_cluster
- name: centos8
box: generic/centos8
cpus: 1
memory: 1024
groups:
- kube_control_plane
- kube_node
- k8s_cluster
provisioner:
name: ansible
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
- name: Prepare
hosts: all
gather_facts: False
become: true
vars:
ignore_assert_errors: true
roles:
- role: kubespray-defaults
- role: bootstrap-os
- { role: kubernetes/preinstall, tags: ["bootstrap-os"] }

0 comments on commit b6e9138

Please sign in to comment.