Skip to content

Commit

Permalink
Merge pull request #86 from entando-k8s/ENG-4776_Porting-the-operator…
Browse files Browse the repository at this point in the history
…-capability-to-select-the-tomcat-image-for-entando-de-app-to-Entando-7.1.X

ENG-4776 Porting the operator capability to select the tomcat image for entando-de-app to Entando 7.1.X
  • Loading branch information
entgigi authored Apr 19, 2023
2 parents 74bb9c8 + f3d8133 commit c30e7ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<version>7.1.0</version>
<relativePath/>
</parent>
<version>7.1.3</version>
<version>7.1.6</version>
<artifactId>entando-k8s-app-controller</artifactId>
<name>Entando K8S Controller for Entando App Deployments</name>
<description>Entando's K8S Controller for Entando App Deployments</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ public String determineImageToUse() {
}

private JeeServer determineStandardImage() {
if (EntandoOperatorSpiConfig.getComplianceMode() == EntandoOperatorComplianceMode.REDHAT) {
return JeeServer.EAP;
} else {
return entandoApp.getSpec().getStandardServerImage().orElse(JeeServer.WILDFLY);
}
return entandoApp.getSpec().getStandardServerImage().orElseGet(() -> {
if (EntandoOperatorSpiConfig.getComplianceMode() == EntandoOperatorComplianceMode.REDHAT) {
return JeeServer.EAP;
} else {
return JeeServer.TOMCAT;
}
});
}

@Override
Expand Down

0 comments on commit c30e7ca

Please sign in to comment.