Kumar
Kumar

Reputation: 209

Helm Upgrade throwing YAML parser errors

I am trying to run helm upgrade after adding a grafana dashboard, but running into YAML parser errors. I have no clue what to fix here. Can someone please help in fixing this?

Error: YAML parse error on grafana/dashboards/elasticsearch-cluster.yaml error converting YAML to JSON: yaml: line 16: could not find expected ':'

{
  "annotations": {
    "list": [

     ]
 },

Upvotes: 1

Views: 557

Answers (2)

Kumar
Kumar

Reputation: 209

Issue was due to indentation,fixed the issue by proper formatting.

Upvotes: 0

Abhishek Jaisingh
Abhishek Jaisingh

Reputation: 1730

A closing curly brace seems to be missing

{
  "annotations": {
    "list": [

     ]
   } # added this
 },

Upvotes: 3

Related Questions