Skip to content

Commit

Permalink
chore: substitute refs to deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Jan 20, 2022
1 parent 177d60a commit 2ca3619
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ private static List<DecoratorBuildItem> createAppConfigVolumeAndEnvDecorators(Op
config.getAppSecret().ifPresent(s -> {
result.add(new DecoratorBuildItem(target, new AddSecretVolumeDecorator(new SecretVolumeBuilder()
.withSecretName(s)
.withNewVolumeName("app-secret")
.withVolumeName("app-secret")
.build())));
result.add(new DecoratorBuildItem(target, new AddMountDecorator(new MountBuilder()
.withName("app-secret")
Expand All @@ -341,7 +341,7 @@ private static List<DecoratorBuildItem> createAppConfigVolumeAndEnvDecorators(Op
config.getAppConfigMap().ifPresent(s -> {
result.add(new DecoratorBuildItem(target, new AddConfigMapVolumeDecorator(new ConfigMapVolumeBuilder()
.withConfigMapName(s)
.withNewVolumeName("app-config-map")
.withVolumeName("app-config-map")
.build())));
result.add(new DecoratorBuildItem(target, new AddMountDecorator(new MountBuilder()
.withName("app-config-map")
Expand Down

0 comments on commit 2ca3619

Please sign in to comment.