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" - 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 @@ ...@@ -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 @@ ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment