This commit is contained in:
Zoltan Kiss 2019-10-04 16:33:13 +01:00
parent 7daae1752b
commit ed2aae6d17

View File

@ -252,7 +252,7 @@ class KubesTest extends DefaultTask {
.addNewVolume() .addNewVolume()
.withName("poddata") .withName("poddata")
.withNewHostPath().withPath(podData.path).withType("Directory").endHostPath() .withNewHostPath().withType("Directory").withPath(podData.path).endHostPath()
.endVolume() .endVolume()
.addNewContainer() .addNewContainer()
@ -271,7 +271,7 @@ class KubesTest extends DefaultTask {
.addToRequests("memory", new Quantity("${memoryGbPerFork}Gi")) .addToRequests("memory", new Quantity("${memoryGbPerFork}Gi"))
.endResources() .endResources()
.addNewVolumeMount().withName("gradlecache").withMountPath("/tmp/gradle").endVolumeMount() .addNewVolumeMount().withName("gradlecache").withMountPath("/tmp/gradle").endVolumeMount()
.addNewVolumeMount().withName("poddata").withMountPath("/poddata").endVolumeMount() .addNewVolumeMount().withName("poddata").withMountPath("/shared-data").endVolumeMount()
.endContainer() .endContainer()
.withImagePullSecrets(new LocalObjectReference("regcred")) .withImagePullSecrets(new LocalObjectReference("regcred"))