Skip to content

Commit

Permalink
Environment property requires a . prefix.
Browse files Browse the repository at this point in the history
This is a copy of PR https://github.com/spring-cloud/spring-cloud-deployer/pull/494/files
because it is not mergeable because the commit number has already been used.
i.e. it was pushed to main, then rolledback and git refuses to merge it again.

resolves 492
  • Loading branch information
cppwfs committed Nov 12, 2024
1 parent c7bccf3 commit 241f872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ Collection<Container> getInitContainers(Map<String, String> kubernetesDeployerPr
if (StringUtils.hasText(containerName) && StringUtils.hasText(imageName)) {
String commandsStr = PropertyParserUtils.getDeploymentPropertyValue(kubeProps, propertyKey + ".commands");
List<String> 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<VolumeMount> vms = this.getInitContainerVolumeMounts(kubeProps, propertyKey);
return new ContainerBuilder()
.withName(containerName)
Expand Down

0 comments on commit 241f872

Please sign in to comment.