apiVersion: v1
kind: ConfigMap
metadata:
  name: vmpooler-baseconfig
data:
  vmpooler.yaml: |
    ---
    {{- with .Values.baseconfig_extras }}
      {{- toYaml . | nindent 4 }}
    {{- end }}

    :tagfilter:
      project: '^([^/]+)'

    {{- if .Values.auth }}
    :auth:
      {{- with .Values.auth }}
        {{- toYaml . | nindent 6 }}
      {{- end }}
    {{- end }}
    :prometheus:
      prefix: {{ .Values.vmpoolerInstance }}
