Remove k8s module for ns creation

pull/8648/head
Florian Ruynat 2022-03-25 11:24:17 +01:00 committed by Kubernetes Prow Robot
parent 3f70241fb7
commit 97cb64c62d
5 changed files with 6 additions and 16 deletions

View File

@ -1,12 +1,8 @@
---
- name: "Create CI namespace {{ test_name }} for test vms"
k8s:
name: "{{ test_name }}"
kind: Namespace
state: present
register: create_ci_ns
failed_when: not create_ci_ns.changed
command: "kubectl create namespace {{ test_name }}"
changed_when: false
- name: "Create temp dir /tmp/{{ test_name }} for CI files"
file:
@ -24,9 +20,8 @@
index_var: vm_id
- name: Start vms for CI job
k8s:
state: present
src: "/tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
command: "kubectl apply -f /tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
changed_when: false
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
loop_control:
index_var: vm_id

View File

@ -14,10 +14,8 @@
state: absent
- name: "Cleanup namespace for {{ test_name }}"
k8s:
kind: Namespace
state: absent
name: "{{ test_name }}"
command: "kubectl delete namespace {{ test_name }}"
changed_when: false
- name: Wait for namespace {{ test_name }} to be fully deleted
command: kubectl get ns {{ test_name }}

View File

@ -5,7 +5,6 @@ tox==3.11.1
dopy==0.3.7
cryptography==2.8
ansible-lint==5.4.0
openshift==0.8.8
molecule==3.0.6
molecule-vagrant==0.3
testinfra==5.2.2

View File

@ -5,7 +5,6 @@ tox==3.11.1
dopy==0.3.7
cryptography==2.8
ansible-lint==5.4.0
openshift==0.8.8
molecule==3.0.6
molecule-vagrant==0.3
testinfra==5.2.2

View File

@ -6,7 +6,6 @@ dopy==0.3.7
cryptography==2.8
ansible-lint==5.4.0 ; python_version >= '3.0'
ansible-lint==4.2.0 ; python_version < '3.0'
openshift==0.8.8
molecule==3.0.6 ; python_version >= '3.0'
molecule==3.0.2 ; python_version < '3.0'
molecule-vagrant==0.3