49 lines
1.9 KiB
YAML
49 lines
1.9 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: koha-map
|
|
namespace: koha
|
|
labels:
|
|
app: koha
|
|
data:
|
|
KOHA_INSTANCE: {{ .Values.instance | quote }}
|
|
KOHA_DOMAIN: {{ .Values.global.domain | quote }}
|
|
KOHA_INTRANET_PORT: {{ .Values.staff.port | quote }}
|
|
{{ with .Values.staff.prefix }}
|
|
KOHA_INTRANET_PREFIX: {{ . | quote }}
|
|
{{ end }}
|
|
{{ with .Values.staff.suffix }}
|
|
KOHA_INTRANET_SUFFIX: {{ . | quote }}
|
|
{{ end }}
|
|
KOHA_MARC_FLAVOUR: {{ .Values.global.marc_flavour }}
|
|
KOHA_OPAC_PORT: {{ .Values.opac.port | quote }}
|
|
{{ with .Values.opac.prefix }}
|
|
KOHA_OPAC_PREFIX: {{ . | quote }}
|
|
{{ end }}
|
|
{{ with .Values.opac.suffix }}
|
|
KOHA_OPAC_SUFFIX: {{ . | quote }}
|
|
{{ end }}
|
|
{{ with .Values.global.lang }}
|
|
KOHA_LANGS: {{ range $index, $lang := . }}
|
|
{{ if $index }} {{ end }}
|
|
{{ $lang }}
|
|
{{ end }}
|
|
{{ end }}
|
|
KOHA_PASS: {{ .Values.global.pass }}
|
|
KOHA_USER: {{ .Values.global.user }}
|
|
MANA_URL: {{ .Values.global.mana }}
|
|
MYSQL_SERVER: {{ with .Values.db.server }} {{ . | quote }} {{ else }} "db" {{ end }}
|
|
MYSQL_ROOT_USER: {{ .Values.db.root_user }}
|
|
MYSQL_DATABASE: {{ with .Values.db.database }} {{ . | quote }} {{ else }} "koha_{{ .Values.instance }}" {{ end }}
|
|
MYSQL_ROOT_PASSWORD: {{ .Values.db.root_pass }}
|
|
MYSQL_USER: {{ with .Values.db.user }} {{ . | quote }} {{ else }} "koha_{{ .Values.instance }}" {{ end }}
|
|
MYSQL_PASSWORD: {{ .Values.db.pass }}
|
|
ZEBRA_MARC_FORMAT: {{ .Values.zebra.marc_format }}
|
|
{{ if .Values.elasticsearch.enabled }}
|
|
OVERRIDE_SYSPREF_SearchEngine: "Elasticsearch"
|
|
KOHA_ES_NAME: {{ with .Values.elasticsearch.server }} {{ . | quote }} {{ else }} "es" {{ end }}
|
|
{{ end }}
|
|
{{ if .Values.memcached.enabled }}
|
|
MEMCACHED_SERVERS: {{ with .Values.memcached.server }} {{ . | quote }} {{ else }} "memcached:11211" {{ end }}
|
|
{{ end }}
|
|
KOHA_PLACK_NAME: "koha" |