You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If changed the template from "{{- tpl .Values.gateway.nginxConfig.file . | indent 2 }}" to {{- tpl .Values.gateway.nginxConfig.file . | nindent 4 }},
it works fine, but we cannot change the Chart, so could you please help on how can i adjust the value to make it works? thanks!
or is this a issue about the configmap template?
# ls
Chart.yaml templates value.yaml
# ls templates/
confimap.yaml
# helm template . --values ./value.yaml --debug
install.go:222: [debug] Original chart version: ""
install.go:239: [debug] CHART PATH: /tmp/a
---
# Source: loki/templates/confimap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: gateway
namespace: monitoring
labels:
app: gateway
data:
nginx.conf: | worker_processes 5;
error_log /dev/stderr;
pid /tmp/nginx.pid;
worker_rlimit_nofile 8192;
Error: YAML parse error on loki/templates/confimap.yaml: error converting YAML to JSON: yaml: line 9: did not find expected comment or line break
helm.go:84: [debug] error converting YAML to JSON: yaml: line 9: did not find expected comment or line break
YAML parse error on loki/templates/confimap.yaml
Thanks!
The text was updated successfully, but these errors were encountered:
wwyhy
changed the title
error converting YAML to JSON: yaml: line 9: did not find expected comment or line break
[gateway/configmap-gateway.yaml] error converting YAML to JSON: yaml: line 9: did not find expected comment or line break
Nov 27, 2024
Hello,
I am trying to install grafana/loki helm chart (version 6.21.0), but get error during gateway configmap render.
https://artifacthub.io/packages/helm/grafana/loki
If changed the template from "{{- tpl .Values.gateway.nginxConfig.file . | indent 2 }}" to {{- tpl .Values.gateway.nginxConfig.file . | nindent 4 }},
it works fine, but we cannot change the Chart, so could you please help on how can i adjust the value to make it works? thanks!
or is this a issue about the configmap template?
Reproduce:
Thanks!
The text was updated successfully, but these errors were encountered: