Skip to content

Commit

Permalink
Fix MySQL Data Directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tommaso-borgato committed Oct 8, 2024
1 parent 369d110 commit 316a2aa
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions builder/src/main/java/cz/xtf/builder/db/MySQL.java
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
package cz.xtf.builder.db;

import cz.xtf.builder.builders.pod.PersistentVolumeClaim;
import cz.xtf.core.config.XTFConfig;
import cz.xtf.core.image.Image;

public class MySQL extends AbstractSQLDatabase {

public MySQL() {
super("MYSQL", "/var/lib/mysql/data");
super("MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"));
}

public MySQL(boolean withLivenessProbe, boolean withReadinessProbe) {
super("MYSQL", "/var/lib/mysql/data", withLivenessProbe, withReadinessProbe);
super("MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"), withLivenessProbe, withReadinessProbe);
}

public MySQL(boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe) {
super("MYSQL", "/var/lib/mysql/data", withLivenessProbe, withReadinessProbe, withStartupProbe, true);
super("MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"), withLivenessProbe, withReadinessProbe, withStartupProbe, true);
}

public MySQL(PersistentVolumeClaim pvc) {
super("MYSQL", "/var/lib/mysql/data", pvc);
super("MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"), pvc);
}

public MySQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe) {
super("MYSQL", "/var/lib/mysql/data", pvc, withLivenessProbe, withReadinessProbe);
super("MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"), pvc, withLivenessProbe, withReadinessProbe);
}

public MySQL(PersistentVolumeClaim pvc, boolean withLivenessProbe, boolean withReadinessProbe, boolean withStartupProbe) {
super("MYSQL", "/var/lib/mysql/data", pvc, withLivenessProbe, withReadinessProbe, withStartupProbe);
super("MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"), pvc, withLivenessProbe, withReadinessProbe, withStartupProbe);
}

public MySQL(String username, String password, String dbName) {
super(username, password, dbName, "MYSQL", "/var/lib/mysql/data");
super(username, password, dbName, "MYSQL", XTFConfig.get("xtf.mysql.datadir", "/var/lib/mysql/data"));
}

@Override
Expand Down

0 comments on commit 316a2aa

Please sign in to comment.