From 79de8ff16911774ec121ebc045f14361b41b14d7 Mon Sep 17 00:00:00 2001
From: Florian Ruynat <florian234@hotmail.com>
Date: Sun, 3 May 2020 21:36:34 +0200
Subject: [PATCH] Replace "replicas" option (CI tests) removed in latest k8s
 versions (#6068)

---
 tests/testcases/030_check-network.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/testcases/030_check-network.yml b/tests/testcases/030_check-network.yml
index e741450cb..4e8903439 100644
--- a/tests/testcases/030_check-network.yml
+++ b/tests/testcases/030_check-network.yml
@@ -18,8 +18,11 @@
   - name: Create test namespace
     shell: "{{ bin_dir }}/kubectl create namespace test"
 
-  - name: Run a replica controller composed of 2 pods in test ns
-    shell: "{{ bin_dir }}/kubectl run test --image={{ test_image_repo }}:{{ test_image_tag }} --namespace test --replicas=2 --command -- tail -f /dev/null"
+  - name: Run 2 busybox pods in test ns
+    shell: "{{ bin_dir }}/kubectl run {{ item }} --image={{ test_image_repo }}:{{ test_image_tag }} --namespace test --command -- tail -f /dev/null"
+    loop:
+    - busybox1
+    - busybox2
 
   - import_role:
       name: cluster-dump
-- 
GitLab