{{- if and (.Files.Glob "files/vhosts/*.conf") (not .Values.vhostsConfigMap) }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "apache.fullname" . }}-vhosts
  labels: {{- include "apache.labels" . | nindent 4 }}
data:
{{ (.Files.Glob "files/vhosts/*.conf").AsConfig | indent 2 }}
{{ end }}
