Ingress helm chart issue for Loki

Hi,

I have deployed over the helm chart kube-prometheus-stack loki. Everything, apart of ingress looks good.
While attempted to play around with ingress getting template error
from
…/kube-prometheus-stack/charts/loki/templates/_helpers.tpl and also ingress.yaml template issue.

Error

helm.go:81: [debug] template:kubePrometheusStack/charts/loki/templates/ingress.yaml:38:14: executing “kubePrometheusStack/charts/loki/templates/ingress.yaml” at <include “loki.ingress.servicePaths” $>: error calling include: template: kubePrometheusStack/charts/loki/templates/_helpers.tpl:525:4: executing “loki.ingress.servicePaths” at <include “loki.ingress.scalableServicePaths” .>: error calling include: template: kubePrometheusStack/charts/loki/templates/_helpers.tpl:535:85: executing “loki.ingress.scalableServicePaths” at <.Values.ingress.paths.read>: can’t evaluate field read in type interface {}

ingress.yaml

{{- if .Values.ingress.enabled }}
{{- $ingressSupportsIngressClassName := eq (include “loki.ingress.supportsIngressClassName” .) “true” -}}
apiVersion: {{ include “loki.ingress.apiVersion” . }}
kind: Ingress
metadata:
name: {{ include “loki.fullname” . }}
namespace: {{ $.Release.Namespace }}
labels:
{{- include “loki.labels” . | nindent 4 }}
{{- with .Values.ingress.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and $ingressSupportsIngressClassName .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end -}}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ tpl . $ | quote }}
{{- end }}
{{- with .secretName }}
secretName: {{ . }}
{{- end }}
{{- end }}
{{- end }}
rules:
{{- range $.Values.ingress.hosts }}
- host: {{ tpl . $ | quote }}
http:
paths:
{{- include “loki.ingress.servicePaths” $ | indent 10}}
{{- end }}
{{- end }}

helpers.tpl

{{/*
Generate list of ingress service paths based on deployment type
*/}}
{{- define “loki.ingress.servicePaths” -}}
{{- if (eq (include “loki.deployment.isScalable” .) “true”) -}}
{{- include “loki.ingress.scalableServicePaths” . }}
{{- else -}}
{{- include “loki.ingress.singleBinaryServicePaths” . }}
{{- end -}}
{{- end -}}

{{/*
Ingress service paths for scalable deployment
*/}}
{{- define “loki.ingress.scalableServicePaths” -}}
{{- include “loki.ingress.servicePath” (dict “ctx” . “svcName” “read” “paths” .Values.ingress.paths.read )}}
{{- include “loki.ingress.servicePath” (dict “ctx” . “svcName” “write” “paths” .Values.ingress.paths.write )}}
{{- end -}}

{{/*
Ingress service paths for single binary deployment
*/}}
{{- define “loki.ingress.singleBinaryServicePaths” -}}
{{- include “loki.ingress.servicePath” (dict “ctx” . “svcName” “singleBinary” “paths” .Values.ingress.paths.singleBinary )}}
{{- end -}}

Does anybody consider this as template bug ?