apiVersion: v1
kind: ConfigMap
metadata:
  name: esxi-host-exporter-config
  namespace: infra-monitoring
data:
  config.yaml: |
    port: {{ $.Values.listen_port | quote }}
    ssl_verify: false
    collectors:
      overall_state_collector:
        enabled: {{ $.Values.collectors.overall_state_collector.enabled }}
      critical_service_collector:
        enabled: {{ $.Values.collectors.critical_service_collector.enabled }}
        max_threads: {{ $.Values.collectors.critical_service_collector.max_threads }}
        services:
          {{- range $service := $.Values.collectors.critical_service_collector.services }}
          - {{ $service }}
          {{- end }}
