{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}

{{/* Append the hardcoded settings */}}
{{- define "privatebin.harcodedValues" -}}
  {{/* Append the configMap volume to the volumes */}}
  persistence:
    privatebin-config:
      enabled: true
      type: "configMap"
      name: "{{ include "common.names.fullname" . }}-config"
      mountPath: "/srv/cfg/conf.php"
      subPath: "conf.php"
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "privatebin.harcodedValues" . | fromYaml) -}}

{{ include "common.all" . }}
