{{/* Define the configmap */}} {{- define "openkm.configmap" -}} --- apiVersion: v1 kind: ConfigMap metadata: name: {{ include "common.names.fullname" . }}-init data: init.sh: |- #!/bin/sh mkdir /opt/tomcat/conf || echo "cannot create conf folder, most likely it already exists..." if [ ! -f "/config/OpenKM.cfg.default" ]; then cp /config/init/OpenKM.cfg.default /opt/tomcat/OpenKM.cfg fi if [ ! -f "/config/server.xml.default" ]; then cp /config/init/server.xml.default /opt/tomcat/conf/server.xml fi OpenKM.cfg.default: |- # OpenKM Hibernate configuration values hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect hibernate.hbm2ddl=create # Logback configuration file logback.config=logback.xml server.xml.default: |- {{- end -}}