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

{{/* Append the hardcoded settings */}}
{{- define "modem-stats.harcodedValues" -}}
persistence:
  modem-stats-settings:
    enabled: "true"
    mountPath: "/src/config.ini"
    subPath: "config.ini"
    type: "custom"
    volumeSpec:
      configMap:
        name: {{ printf "%v-config" (include "common.names.fullname" .) }}

# -- Disable service
service:
  main:
    enabled: false

# -- Disable probes because no service is present
probes:
  liveness:
    enabled: false
  readiness:
    enabled: false
  startup:
    enabled: false
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "modem-stats.harcodedValues" . | fromYaml) -}}

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