PHASE 1 - Add Packet-CI playbook and configuration (#4537)

This commit is contained in:
Andreas Krüger
2019-04-16 23:49:07 +02:00
committed by Kubernetes Prow Robot
parent 78f6f6b889
commit b834a28891
10 changed files with 268 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
---
- name: Check if temp directory for {{ test_name }} exists
stat:
path: "/tmp/{{ test_name }}"
register: temp_dir_details
- name: "Cleanup temp directory for {{ test_name }}"
file:
path: "/tmp/{{ test_name }}"
state: absent
- name: "Cleanup namespace for {{ test_name }}"
k8s:
kind: Namespace
state: absent
name: "{{ test_name }}"
- name: Wait for namespace {{ test_name }} to be fully deleted
shell: kubectl get ns {{ test_name }}
register: delete_namespace
failed_when:
- delete_namespace.rc == 0
changed_when:
- delete_namespace.rc == 0
retries: 12
delay: "10"
until:
- delete_namespace.rc != 0