@@ -296,8 +296,6 @@ private String getTaskDefinition(Authentication user, ContainerSpec spec, EcsSpe
296296
297297 Pair <List <Volume >, List <MountPoint >> volumes = getVolumes (spec , specExtension );
298298
299- List <Secret > secrets = getSecrets (spec , specExtension );
300-
301299 EphemeralStorage ephemeralStorage = EphemeralStorage
302300 .builder ()
303301 .sizeInGiB (specExtension .ecsEphemeralStorageSize .getValueOrDefault (21 ))
@@ -316,7 +314,7 @@ private String getTaskDefinition(Authentication user, ContainerSpec spec, EcsSpe
316314 .dockerLabels (dockerLabels )
317315 .logConfiguration (getLogConfiguration (proxy .getSpecId ()))
318316 .mountPoints (volumes .getSecond ())
319- .secrets (secrets );
317+ .secrets (getSecrets ( specExtension ) );
320318
321319 String credentials = specExtension .getEcsRepositoryCredentialsParameter ().getValueOrDefault (defaultRepositoryCredentialsParameter );
322320 if (credentials != null && !credentials .isBlank ()) {
@@ -420,7 +418,7 @@ private Pair<List<Volume>, List<MountPoint>> getVolumes(ContainerSpec spec, EcsS
420418 return Pair .of (efsVolumeConfigurations , mountPoints );
421419 }
422420
423- private List <Secret > getSecrets (ContainerSpec spec , EcsSpecExtension specExtension ) {
421+ private List <Secret > getSecrets (EcsSpecExtension specExtension ) {
424422 List <Secret > secrets = new ArrayList <>();
425423 for (EcsManagedSecret managedSecrets : specExtension .getEcsManagedSecrets ()) {
426424 Secret .Builder secretBuilder = Secret .builder ();
0 commit comments