mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 08:07:55 +08:00
Signed-off-by: Gang Liu <gang.liu@daocloud.io> Signed-off-by: Gang Liu <gang.liu@daocloud.io>
17 lines
737 B
YAML
17 lines
737 B
YAML
{{ if and (.Files.Glob "files/httpd.conf") (not .Values.httpdConfConfigMap) }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ printf "%s-httpd-conf" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
{{ (.Files.Glob "files/httpd.conf").AsConfig | indent 2 }}
|
|
{{ end }}
|