From 790996c6e2a80b3d0946165013c006b9412bfdb7 Mon Sep 17 00:00:00 2001 From: Alfonso Presa Date: Thu, 23 Jan 2020 16:07:40 +0100 Subject: [PATCH] fix(k8s): use correct volume for data sharing --- .../container/kubernetes/KubernetesContainerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java b/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java index 1cbf30ecb8..2ea6de9a2d 100644 --- a/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java +++ b/src/main/java/de/zalando/ep/zalenium/container/kubernetes/KubernetesContainerClient.java @@ -220,7 +220,7 @@ private void discoverFolderMounts() { .filter(volume -> validMount.getName().equalsIgnoreCase(volume.getName())) .findFirst() .ifPresent(volume -> { - if(nodeSharedArtifactsMount == null) { + if(nodeSharedArtifactsMount == null && volume.getEmptyDir() == null && volume.getName().endsWith("-data")) { nodeSharedArtifactsMount = validMount; } mountedSharedFoldersMap.put(validMount, volume);