From 692d7949eded8072672a378b2a66a1806bb50615 Mon Sep 17 00:00:00 2001 From: Tyler Gu Date: Wed, 11 Sep 2024 17:01:11 -0500 Subject: [PATCH] Fix mariadb dependencies Signed-off-by: Tyler Gu --- data/mariadb-operator/v0.30.0/config.json | 7 +++- .../v0.30.0/mariadb-dependencies.yaml | 38 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 data/mariadb-operator/v0.30.0/mariadb-dependencies.yaml diff --git a/data/mariadb-operator/v0.30.0/config.json b/data/mariadb-operator/v0.30.0/config.json index 703169140..b6e6f8926 100644 --- a/data/mariadb-operator/v0.30.0/config.json +++ b/data/mariadb-operator/v0.30.0/config.json @@ -4,13 +4,18 @@ { "helm_install": { "release_name": "mariadb-operator", - "chart": "mariadb-operator/mariadb-operator", + "chart": "mariadb-operator", "repo": "https://helm.mariadb.com/mariadb-operator", "version": "0.30.0", "operator": true, "operator_deployment_name": "mariadb-operator", "operator_container_name": "controller" } + }, + { + "apply": { + "file": "data/mariadb-operator/v0.30.0/mariadb-dependencies.yaml" + } } ] }, diff --git a/data/mariadb-operator/v0.30.0/mariadb-dependencies.yaml b/data/mariadb-operator/v0.30.0/mariadb-dependencies.yaml new file mode 100644 index 000000000..43589c36a --- /dev/null +++ b/data/mariadb-operator/v0.30.0/mariadb-dependencies.yaml @@ -0,0 +1,38 @@ +apiVersion: v1 +kind: Secret +metadata: + name: mariadb-auth +stringData: + # -- SELECT PASSWORD('MariaDB11!'); + passwordHash: "*57685B4F0FF9D049082E296E2C39354B7A98774E" + # -- CREATE FUNCTION ed25519_password RETURNS STRING SONAME "auth_ed25519.so"; + # -- SELECT ed25519_password("MariaDB11!"); + ed25519Hash: LaiG/7DSlQ+t1zlYnMR7he1kSf3u7Hzo2ElLon4mJ4w + ed25519Plugin: ed25519 + nativePasswordPlugin: mysql_native_password +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: mariadb + labels: + k8s.mariadb.com/watch: "" +data: + my.cnf: | + [mariadb] + bind-address=* + default_storage_engine=InnoDB + binlog_format=row + innodb_autoinc_lock_mode=2 + innodb_buffer_pool_size=1024M + max_allowed_packet=256M +--- +apiVersion: v1 +kind: Secret +metadata: + name: mariadb + labels: + k8s.mariadb.com/watch: "" +stringData: + password: MariaDB11! + root-password: MariaDB11! \ No newline at end of file