From f29423148c9d9683ffda7245e2f004aaafadaa6e Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Sun, 22 Sep 2024 23:01:00 +0900 Subject: [PATCH 1/2] feat: create DB for LiteBans, CoreProtect and XConomy in initdb.d --- .../templates/mariadb/mariadb.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml index 2f6a98cc2..e3eb6a00d 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml @@ -105,6 +105,9 @@ spec: - -c - | echo 'CREATE DATABASE IF NOT EXISTS luckperms;' > /docker-entrypoint-initdb.d/create-db.sql + echo 'CREATE DATABASE IF NOT EXISTS litebans;' >> /docker-entrypoint-initdb.d/create-db.sql + echo 'CREATE DATABASE IF NOT EXISTS coreprotect__mc_s1;' >> /docker-entrypoint-initdb.d/create-db.sql + echo 'CREATE DATABASE IF NOT EXISTS xconomy;' >> /docker-entrypoint-initdb.d/create-db.sql volumeMounts: - mountPath: /docker-entrypoint-initdb.d name: sqldump-volume From 9dcd6e385f995daa2af54f69a23698a673e3bfda Mon Sep 17 00:00:00 2001 From: Lucky3028 Date: Sun, 22 Sep 2024 23:01:32 +0900 Subject: [PATCH 2/2] fix: change DB kind for XConomy MariaDB require DatabaseDrivers --- .../templates/common-configs/plugin-configs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/common-configs/plugin-configs.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/common-configs/plugin-configs.yaml index a02956293..c5febb972 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/common-configs/plugin-configs.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/common-configs/plugin-configs.yaml @@ -5918,7 +5918,7 @@ data: Settings: #SQLite MySQL MariaDB #MariaDB require DatabaseDrivers - storage-type: MariaDB + storage-type: MySQL #Use connection pool or not #Require 'slf4j' dependencies #At least java version 11 is required