2021-09-02 15:46:50 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2021-10-09 21:43:48 +00:00
|
|
|
{{- include "common.setup" . }}
|
2021-09-02 15:46:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{/* Render configmap for nextcloud */}}
|
|
|
|
{{- include "k8s-gateway.configmap" . }}
|
|
|
|
|
|
|
|
{{/* Append the general configMap volume to the volumes */}}
|
|
|
|
{{- define "k8s-gateway.configvolume" -}}
|
|
|
|
enabled: "true"
|
|
|
|
mountPath: "/etc/coredns"
|
|
|
|
readOnly: true
|
|
|
|
type: "custom"
|
|
|
|
volumeSpec:
|
|
|
|
configMap:
|
|
|
|
name: {{ include "common.names.fullname" . }}-corefile
|
|
|
|
items:
|
|
|
|
- key: Corefile
|
|
|
|
path: Corefile
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- $_ := set .Values.persistence "config-volume" (include "k8s-gateway.configvolume" . | fromYaml) -}}
|
|
|
|
{{/* Render the templates */}}
|
2021-10-09 22:02:33 +00:00
|
|
|
{{ include "common.postSetup" . }}
|