2021-09-02 15:46:50 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2022-06-07 17:41:19 +00:00
|
|
|
{{- include "tc.common.loader.init" . }}
|
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:
|
2022-06-07 17:41:19 +00:00
|
|
|
name: {{ include "tc.common.names.fullname" . }}-corefile
|
2021-09-02 15:46:50 +00:00
|
|
|
items:
|
|
|
|
- key: Corefile
|
|
|
|
path: Corefile
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- $_ := set .Values.persistence "config-volume" (include "k8s-gateway.configvolume" . | fromYaml) -}}
|
|
|
|
{{/* Render the templates */}}
|
2022-06-07 17:41:19 +00:00
|
|
|
{{ include "tc.common.loader.apply" . }}
|