Skip to content

Commit

Permalink
Update ContainerProperties to match k8s PodSpec.
Browse files Browse the repository at this point in the history
Updated tests to use old and new names.
Deprecated old names.

Fixes spring-cloud#477
  • Loading branch information
Corneil du Plessis committed Sep 20, 2024
1 parent 324b59c commit f9c729b
Show file tree
Hide file tree
Showing 5 changed files with 1,755 additions and 1,665 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,13 @@ public Container create(ContainerConfiguration containerConfiguration) {
envFromSources.addAll(deploymentPropertiesResolver.getSecretRefs(deploymentProperties));

ContainerBuilder container = new ContainerBuilder();
container.withName(containerConfiguration.getAppId()).withImage(image).withEnv(envVars).withEnvFrom(envFromSources)
.withArgs(appArgs).withVolumeMounts(deploymentPropertiesResolver.getVolumeMounts(deploymentProperties));
container.withName(containerConfiguration.getAppId())
.withImage(image)
.withEnv(envVars)
.withEnvFrom(envFromSources)
.withArgs(appArgs)
.withImagePullPolicy(deploymentPropertiesResolver.getImagePullPolicy(deploymentProperties))
.withVolumeMounts(deploymentPropertiesResolver.getVolumeMounts(deploymentProperties));

Set<Integer> ports = new HashSet<>();

Expand Down
Loading

0 comments on commit f9c729b

Please sign in to comment.