From b6e9138e77db9127e037964a20624603f656ca24 Mon Sep 17 00:00:00 2001 From: Calin Cristian Andrei Date: Sun, 19 Sep 2021 09:49:58 +0300 Subject: [PATCH] Containerd: make molecule testing more relevant * replace ubuntu18 with ubuntu20 * add centos8 and debian11 to molecule tests * run kubernetes/preinstall role to ensure relevancy of test including dependency packages --- .../containerd/molecule/default/molecule.yml | 24 ++++++++++++++++--- .../containerd/molecule/default/prepare.yml | 5 ++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/roles/container-engine/containerd/molecule/default/molecule.yml b/roles/container-engine/containerd/molecule/default/molecule.yml index 48f7b5dd027..f285da1cb00 100644 --- a/roles/container-engine/containerd/molecule/default/molecule.yml +++ b/roles/container-engine/containerd/molecule/default/molecule.yml @@ -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: diff --git a/roles/container-engine/containerd/molecule/default/prepare.yml b/roles/container-engine/containerd/molecule/default/prepare.yml index 1afc51a047c..aef05228d80 100644 --- a/roles/container-engine/containerd/molecule/default/prepare.yml +++ b/roles/container-engine/containerd/molecule/default/prepare.yml @@ -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"] }