Remove k8s module for ns creation
This commit is contained in:
parent
3f70241fb7
commit
97cb64c62d
5 changed files with 6 additions and 16 deletions
|
@ -1,12 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: "Create CI namespace {{ test_name }} for test vms"
|
- name: "Create CI namespace {{ test_name }} for test vms"
|
||||||
k8s:
|
command: "kubectl create namespace {{ test_name }}"
|
||||||
name: "{{ test_name }}"
|
changed_when: false
|
||||||
kind: Namespace
|
|
||||||
state: present
|
|
||||||
register: create_ci_ns
|
|
||||||
failed_when: not create_ci_ns.changed
|
|
||||||
|
|
||||||
- name: "Create temp dir /tmp/{{ test_name }} for CI files"
|
- name: "Create temp dir /tmp/{{ test_name }} for CI files"
|
||||||
file:
|
file:
|
||||||
|
@ -24,9 +20,8 @@
|
||||||
index_var: vm_id
|
index_var: vm_id
|
||||||
|
|
||||||
- name: Start vms for CI job
|
- name: Start vms for CI job
|
||||||
k8s:
|
command: "kubectl apply -f /tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
|
||||||
state: present
|
changed_when: false
|
||||||
src: "/tmp/{{ test_name }}/instance-{{ vm_id }}.yml"
|
|
||||||
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
|
loop: "{{ range(1, vm_count|int + 1, 1) | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
index_var: vm_id
|
index_var: vm_id
|
||||||
|
|
|
@ -14,10 +14,8 @@
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: "Cleanup namespace for {{ test_name }}"
|
- name: "Cleanup namespace for {{ test_name }}"
|
||||||
k8s:
|
command: "kubectl delete namespace {{ test_name }}"
|
||||||
kind: Namespace
|
changed_when: false
|
||||||
state: absent
|
|
||||||
name: "{{ test_name }}"
|
|
||||||
|
|
||||||
- name: Wait for namespace {{ test_name }} to be fully deleted
|
- name: Wait for namespace {{ test_name }} to be fully deleted
|
||||||
command: kubectl get ns {{ test_name }}
|
command: kubectl get ns {{ test_name }}
|
||||||
|
|
|
@ -5,7 +5,6 @@ tox==3.11.1
|
||||||
dopy==0.3.7
|
dopy==0.3.7
|
||||||
cryptography==2.8
|
cryptography==2.8
|
||||||
ansible-lint==5.4.0
|
ansible-lint==5.4.0
|
||||||
openshift==0.8.8
|
|
||||||
molecule==3.0.6
|
molecule==3.0.6
|
||||||
molecule-vagrant==0.3
|
molecule-vagrant==0.3
|
||||||
testinfra==5.2.2
|
testinfra==5.2.2
|
||||||
|
|
|
@ -5,7 +5,6 @@ tox==3.11.1
|
||||||
dopy==0.3.7
|
dopy==0.3.7
|
||||||
cryptography==2.8
|
cryptography==2.8
|
||||||
ansible-lint==5.4.0
|
ansible-lint==5.4.0
|
||||||
openshift==0.8.8
|
|
||||||
molecule==3.0.6
|
molecule==3.0.6
|
||||||
molecule-vagrant==0.3
|
molecule-vagrant==0.3
|
||||||
testinfra==5.2.2
|
testinfra==5.2.2
|
||||||
|
|
|
@ -6,7 +6,6 @@ dopy==0.3.7
|
||||||
cryptography==2.8
|
cryptography==2.8
|
||||||
ansible-lint==5.4.0 ; python_version >= '3.0'
|
ansible-lint==5.4.0 ; python_version >= '3.0'
|
||||||
ansible-lint==4.2.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.6 ; python_version >= '3.0'
|
||||||
molecule==3.0.2 ; python_version < '3.0'
|
molecule==3.0.2 ; python_version < '3.0'
|
||||||
molecule-vagrant==0.3
|
molecule-vagrant==0.3
|
||||||
|
|
Loading…
Reference in a new issue