From d6eba07deaac663792370a1d612ece60a97d04a4 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 7 May 2020 17:03:06 +0800 Subject: [PATCH] configmap name --- .../io/metersphere/engine/kubernetes/KubernetesTestEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/engine/kubernetes/KubernetesTestEngine.java b/backend/src/main/java/io/metersphere/engine/kubernetes/KubernetesTestEngine.java index d40840e9ba..bdd60a871e 100644 --- a/backend/src/main/java/io/metersphere/engine/kubernetes/KubernetesTestEngine.java +++ b/backend/src/main/java/io/metersphere/engine/kubernetes/KubernetesTestEngine.java @@ -63,7 +63,7 @@ public class KubernetesTestEngine extends AbstractEngine { kubernetesProvider.confirmNamespace(context.getNamespace()); // create cm try (KubernetesClient client = kubernetesProvider.getKubernetesClient()) { - String configMapName = context.getTestId() + "-files"; + String configMapName = "jmeter-" + context.getTestId() + "-files"; ConfigMap configMap = client.configMaps().inNamespace(context.getNamespace()).withName(configMapName).get(); if (configMap == null) { ConfigMap item = new ConfigMap();