diff --git a/fuse-products/src/main/java/software/tnb/product/csb/application/OpenshiftSpringBootApp.java b/fuse-products/src/main/java/software/tnb/product/csb/application/OpenshiftSpringBootApp.java index 890b804c4..443461027 100644 --- a/fuse-products/src/main/java/software/tnb/product/csb/application/OpenshiftSpringBootApp.java +++ b/fuse-products/src/main/java/software/tnb/product/csb/application/OpenshiftSpringBootApp.java @@ -68,7 +68,10 @@ public void stop() { public boolean isReady() { try { final List pods = OpenshiftClient.get().getLabeledPods(Map.of(OpenshiftConfiguration.openshiftDeploymentLabel(), finalName)); - return !pods.isEmpty() && pods.stream().allMatch(Readiness::isPodReady); + return !pods.isEmpty() && pods.stream() + .filter(pod -> !pod.isMarkedForDeletion()) + .filter(pod -> !"Evicted".equals(pod.getStatus().getReason())) + .allMatch(Readiness::isPodReady); } catch (Exception ignored) { return false; } diff --git a/fuse-products/src/main/java/software/tnb/product/customizer/component/datasource/DataSourceCustomizer.java b/fuse-products/src/main/java/software/tnb/product/customizer/component/datasource/DataSourceCustomizer.java index 7edda39ab..cd9dd78f4 100644 --- a/fuse-products/src/main/java/software/tnb/product/customizer/component/datasource/DataSourceCustomizer.java +++ b/fuse-products/src/main/java/software/tnb/product/customizer/component/datasource/DataSourceCustomizer.java @@ -61,7 +61,7 @@ public void customizeSpringboot() { // https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#microsoft-sql-server-jdbc-drive-10 url = url + ";encrypt=false;"; } else if (type.contains("mysql")) { - dependencies.add("mysql:mysql-connector-java"); + dependencies.add("com.mysql:mysql-connector-j"); } else if (type.contains("mariadb")) { dependencies.add("org.mariadb.jdbc:mariadb-java-client"); } else if (type.contains("db2")) { diff --git a/system-x/services/db/mongodb/src/main/java/software/tnb/db/mongodb/account/MongoDBAccount.java b/system-x/services/db/mongodb/src/main/java/software/tnb/db/mongodb/account/MongoDBAccount.java index 4db1001fb..bd17a948f 100644 --- a/system-x/services/db/mongodb/src/main/java/software/tnb/db/mongodb/account/MongoDBAccount.java +++ b/system-x/services/db/mongodb/src/main/java/software/tnb/db/mongodb/account/MongoDBAccount.java @@ -4,13 +4,13 @@ public class MongoDBAccount implements Account { private String username = "user"; - private String password = "user"; + private String password = "useruseruseruseruseruser"; private String database = "sampledb"; private String replicaSetUrl; private String replicaSetName = "rs0"; private String replicaSetMode = "primary"; private String replicaSetKey = "replica"; - private String rootPassword = "admin"; + private String rootPassword = "adminadminadminadminadmin"; private String clientBeanName = "camelMongoClient"; public void setUsername(String username) { diff --git a/system-x/services/db/mysql/pom.xml b/system-x/services/db/mysql/pom.xml index 263fe2fb8..5bccf2b27 100644 --- a/system-x/services/db/mysql/pom.xml +++ b/system-x/services/db/mysql/pom.xml @@ -15,7 +15,7 @@ TNB :: System-X :: Services :: DB :: MySQL - 8.0.29 + 8.0.32 @@ -29,8 +29,8 @@ 1.0-SNAPSHOT - mysql - mysql-connector-java + com.mysql + mysql-connector-j ${mysql.driver.version}