41 lines
1.6 KiB
YAML
41 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: phppgadmin-config
|
|
labels:
|
|
app.kubernetes.io/name: phppgadmin
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
data:
|
|
config.inc.php: |
|
|
<?php
|
|
{{- range $index, $server := .Values.servers }}
|
|
$conf['servers'][{{ $index }}]['desc'] = {{ $server.description | quote }};
|
|
$conf['servers'][{{ $index }}]['host'] = {{ $server.host | quote }};
|
|
$conf['servers'][{{ $index }}]['port'] = {{ $server.port | default 5432 }};
|
|
$conf['servers'][{{ $index }}]['sslmode'] = {{ $server.sslmode | default "allow" | quote }};
|
|
$conf['servers'][{{ $index }}]['defaultdb'] = {{ $server.defaultdb | default "template1" | quote }};
|
|
{{- if eq $index 0 }}
|
|
$conf['servers'][{{ $index }}]['pg_dump_path'] = '/usr/bin/pg_dump';
|
|
$conf['servers'][{{ $index }}]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
|
|
{{- end }}
|
|
{{- end }}
|
|
$conf['default_lang'] = 'auto';
|
|
$conf['extra_session_security'] = true;
|
|
$conf['autocomplete'] = 'default on';
|
|
$conf['extra_login_security'] = true;
|
|
$conf['owned_only'] = false;
|
|
$conf['show_comments'] = true;
|
|
$conf['show_advanced'] = false;
|
|
$conf['show_system'] = false;
|
|
$conf['min_password_length'] = 1;
|
|
$conf['left_width'] = 200;
|
|
$conf['theme'] = 'default';
|
|
$conf['show_oids'] = false;
|
|
$conf['max_rows'] = 30;
|
|
$conf['max_chars'] = 50;
|
|
$conf['use_xhtml_strict'] = false;
|
|
$conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
|
|
$conf['ajax_refresh'] = 3;
|
|
$conf['plugins'] = array();
|
|
$conf['version'] = 19;
|