Skip to content
Snippets Groups Projects
Commit 97cb64c6 authored by Florian Ruynat's avatar Florian Ruynat Committed by Kubernetes Prow Robot
Browse files

Remove k8s module for ns creation

parent 3f70241f
No related branches found
No related tags found
No related merge requests found
---
- 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
......
......@@ -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 }}
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment