configmap name

This commit is contained in:
Captain.B 2020-05-07 17:03:06 +08:00
parent cdf3a260e5
commit d6eba07dea
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class KubernetesTestEngine extends AbstractEngine {
kubernetesProvider.confirmNamespace(context.getNamespace()); kubernetesProvider.confirmNamespace(context.getNamespace());
// create cm // create cm
try (KubernetesClient client = kubernetesProvider.getKubernetesClient()) { 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(); ConfigMap configMap = client.configMaps().inNamespace(context.getNamespace()).withName(configMapName).get();
if (configMap == null) { if (configMap == null) {
ConfigMap item = new ConfigMap(); ConfigMap item = new ConfigMap();