From b54e9ef4ef36e8da5a9a30b0c2d39232c2773aa8 Mon Sep 17 00:00:00 2001 From: Mike Graves Date: Tue, 25 Jan 2022 17:23:09 -0500 Subject: [PATCH] Remove serial deletion of pods in template tests (#349) Remove serial deletion of pods in template tests SUMMARY The template test suite deletes twelve pods in serial during cleanup which is very slow and leads to frequent timeouts. There's no need to do this since we delete the namespace the pods are in right after. ISSUE TYPE COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: None Reviewed-by: None --- molecule/default/tasks/template.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/molecule/default/tasks/template.yml b/molecule/default/tasks/template.yml index 13246c37..f582bb45 100644 --- a/molecule/default/tasks/template.yml +++ b/molecule/default/tasks/template.yml @@ -239,17 +239,6 @@ - resource.result.results | selectattr('changed') | list | length == 1 - resource.result.results | selectattr('error', 'defined') | list | length == 1 - - name: Remove Pod (Cleanup) - kubernetes.core.k8s: - api_version: v1 - kind: Pod - name: "pod-{{ item }}" - namespace: "{{ template_namespace }}" - state: absent - wait: yes - ignore_errors: yes - loop: "{{ range(1, 12) | list }}" - always: - name: Remove namespace (Cleanup) kubernetes.core.k8s: