File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
main/java/oracle/kubernetes/operator/helpers
test/java/oracle/kubernetes/operator/helpers Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -482,6 +482,7 @@ private void addInitDomainOnPVInitContainer(List<V1Container> initContainers) {
482
482
initContainers .add (new V1Container ()
483
483
.name (INIT_DOMAIN_ON_PV_CONTAINER )
484
484
.image (getDomain ().getSpec ().getImage ())
485
+ .volumeMounts (getDomain ().getAdminServerSpec ().getAdditionalVolumeMounts ())
485
486
.addVolumeMountsItem (new V1VolumeMount ().name (SCRIPTS_VOLUME ).mountPath (SCRIPTS_MOUNTS_PATH ))
486
487
.addVolumeMountsItem (new V1VolumeMount ().name (AUXILIARY_IMAGE_INTERNAL_VOLUME_NAME )
487
488
.mountPath (AUXILIARY_IMAGE_TARGET_PATH ))
Original file line number Diff line number Diff line change @@ -1568,6 +1568,7 @@ void introspectorPodSpec_createdWithInitDomainOnPVInitContainerHasCorrectVolumeM
1568
1568
.withLogHome ("/share/logs/domain1" )
1569
1569
.withDomainHomeSourceType (DomainSourceType .PERSISTENT_VOLUME )
1570
1570
.withAdditionalVolume ("volume1" , VOLUME_PATH_1 )
1571
+ .withAdditionalVolumeMount ("volume1Mount" , VOLUME_MOUNT_PATH_1 )
1571
1572
.withInitializeDomainOnPV (new InitializeDomainOnPV ()
1572
1573
.domain (new DomainOnPV ().createMode (CreateIfNotExists .DOMAIN_AND_RCU )
1573
1574
.domainType (JRF )
@@ -1584,7 +1585,7 @@ void introspectorPodSpec_createdWithInitDomainOnPVInitContainerHasCorrectVolumeM
1584
1585
.map (V1Container ::getVolumeMounts ).orElse (Collections .emptyList ()).stream ()
1585
1586
.map (V1VolumeMount ::getMountPath )
1586
1587
.collect (Collectors .toList ()),
1587
- hasItems (SCRIPTS_MOUNTS_PATH , "/tmpAuxiliaryImage" ));
1588
+ hasItems (SCRIPTS_MOUNTS_PATH , "/tmpAuxiliaryImage" , VOLUME_MOUNT_PATH_1 ));
1588
1589
1589
1590
}
1590
1591
You can’t perform that action at this time.
0 commit comments