mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 23:20:56 +01:00
refactor(structure): move to 7project dir
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{{- if (.Values.phpmyadmin.enabled | default true) }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: phpmyadmin-config
|
||||
namespace: mariadb-operator
|
||||
data:
|
||||
hosts-init-script.sh: |-
|
||||
#!/bin/bash
|
||||
|
||||
echo "
|
||||
/* Maximum number of databases displayed on one page */
|
||||
\$cfg['MaxDbList'] = 300;
|
||||
\$cfg['MaxNavigationItems'] = 300;
|
||||
/* Additional servers */
|
||||
\$servers = [
|
||||
{{- range $i, $e := until (int (3)) }}
|
||||
'mariadb-repl-{{ $i }}',
|
||||
{{- end }}
|
||||
];
|
||||
foreach (\$servers as \$server) {
|
||||
\$i++;
|
||||
/* Authentication type */
|
||||
\$cfg['Servers'][\$i]['auth_type'] = 'cookie';
|
||||
/* Server parameters */
|
||||
\$cfg['Servers'][\$i]['host'] = \$server;
|
||||
\$cfg['Servers'][\$i]['port'] = '3306';
|
||||
\$cfg['Servers'][\$i]['compress'] = false;
|
||||
\$cfg['Servers'][\$i]['AllowNoPassword'] = false;
|
||||
}
|
||||
" >> /opt/bitnami/phpmyadmin/config.inc.php
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user