From 7f28f938ec60f3e15999de0358a2683b8080e994 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Tue, 12 Nov 2024 14:56:51 +0200 Subject: [PATCH] Fix issue with missing dot in property name Updated environmentVariables usage to include a dot. Fixes #492 --- .../deployer/spi/kubernetes/DeploymentPropertiesResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-deployer-kubernetes/src/main/java/org/springframework/cloud/deployer/spi/kubernetes/DeploymentPropertiesResolver.java b/spring-cloud-deployer-kubernetes/src/main/java/org/springframework/cloud/deployer/spi/kubernetes/DeploymentPropertiesResolver.java index b638b20f..bb55fca9 100644 --- a/spring-cloud-deployer-kubernetes/src/main/java/org/springframework/cloud/deployer/spi/kubernetes/DeploymentPropertiesResolver.java +++ b/spring-cloud-deployer-kubernetes/src/main/java/org/springframework/cloud/deployer/spi/kubernetes/DeploymentPropertiesResolver.java @@ -653,7 +653,7 @@ Collection getInitContainers(Map kubernetesDeployerPr if (StringUtils.hasText(containerName) && StringUtils.hasText(imageName)) { String commandsStr = PropertyParserUtils.getDeploymentPropertyValue(kubeProps, propertyKey + ".commands"); List commands = StringUtils.hasText(commandsStr) ? Arrays.asList(commandsStr.split(",")) : Collections.emptyList(); - String envString = PropertyParserUtils.getDeploymentPropertyValue(kubeProps, propertyKey + "environmentVariables"); + String envString = PropertyParserUtils.getDeploymentPropertyValue(kubeProps, propertyKey + ".environmentVariables"); List vms = this.getInitContainerVolumeMounts(kubeProps, propertyKey); return new ContainerBuilder() .withName(containerName)