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

{{/* Append the hardcoded settings */}}
{{- define "prometheus-nut-exporter.harcodedValues" -}}
env:
  HTTP_PATH: "/metrics"
  HTTP_PORT: "{{ .Values.service.main.ports.metrics.port }}"
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "prometheus-nut-exporter.harcodedValues" . | fromYaml) -}}

{{/* Render the templates */}}
{{ include "common.all" . }}
