add initial helm chart values

This commit is contained in:
Justin Kreller
2024-11-15 16:56:01 +01:00
parent 75a5b2879e
commit 74dcdd16d4
9 changed files with 797 additions and 92 deletions

49
templates/configMap.yml Normal file
View File

@@ -0,0 +1,49 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: koha-map
namespace: koha-{{ .Values.instance }}
labels:
app: koha
data:
KOHA_INSTANCE: {{ required "You must provide an instance name, either using --set instance=myinstance or in a custom values.yaml" .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 }} "{{ .Values.instance }}-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 }} "{{ .Values.instance }}-es" {{ end }}
{{ end }}
{{ if .Values.memcached.enabled }}
MEMCACHED_SERVERS: {{ with .Values.memcached.server }} {{ . | quote }} {{ else }} "{{ .Values.instance }}-memcached:11211" {{ end }}
{{ end }}
KOHA_PLACK_NAME: "{{ .Values.instance }}-plack"