Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong indentation causing config template to fail when defined .loki.query_range settings #12954

Open
bbeellkk-ua opened this issue May 13, 2024 · 0 comments
Labels
area/helm type/bug Somehing is not working as expected

Comments

@bbeellkk-ua
Copy link

{{- tpl (. | toYaml) $ | nindent 4 }}

Change from 4 to 2 to fix the problem.

Wrong indentation causing config template to fail when defined .loki.query_range settings like in the below example:
loki: query_range: max_retries: 5 parallelise_shardable_queries: true

`
helm template loki grafana/loki --version 6.5.2 --debug --values ./loki.yaml --show-only templates/config.yaml

Source: loki/templates/config.yaml

apiVersion: v1
kind: ConfigMap
metadata:
name: loki
namespace: default
labels:
helm.sh/chart: loki-6.5.2
app.kubernetes.io/name: loki
app.kubernetes.io/instance: loki
app.kubernetes.io/version: "2.9.4"
app.kubernetes.io/managed-by: Helm
data:
config.yaml: |

Error: 'error converting YAML to JSON: yaml: line 99: mapping values are not allowed
  in this context'

`

@JStickler JStickler added area/helm type/bug Somehing is not working as expected labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm type/bug Somehing is not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants