From 020a9d959324ad277d2811eb80e558b38d931000 Mon Sep 17 00:00:00 2001 From: Bharat Khare Date: Tue, 15 Oct 2019 21:31:32 +0000 Subject: [PATCH] Grafana gridPos y key resolves true in chart json This change is to fix the issue where Kubernetes Calico dashboard is not loading in grafana dashboard. Found the behavior that YAML reserved keys like yes/no/y/n evaluate to true and false in Ruby hash,so the gridPos key like 'y:' converts to 'true:' in charts json causing the dashbaord not loading. Hence updating gridPos panel key (y:) by wrapping it with quotes like ('y':) to resolve the issue. There's actually a long list of YAML reserved words with this behavior like below- y|Y|yes|Yes|YES|n|N|no|No|NO |true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF Change-Id: I56b01f1312efa8de90def349518c618affb5de85 --- grafana/values.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/grafana/values.yaml b/grafana/values.yaml index 8422e68e7..856e1b55a 100644 --- a/grafana/values.yaml +++ b/grafana/values.yaml @@ -16929,7 +16929,7 @@ conf: h: 1 w: 24 x: 0 - y: 0 + 'y': 0 id: 15 panels: [] repeat: @@ -16945,7 +16945,7 @@ conf: h: 7 w: 12 x: 0 - y: 1 + 'y': 1 id: 1 legend: alignAsTable: true @@ -17013,7 +17013,7 @@ conf: h: 7 w: 12 x: 12 - y: 1 + 'y': 1 id: 3 legend: alignAsTable: true @@ -17081,7 +17081,7 @@ conf: h: 7 w: 12 x: 0 - y: 8 + 'y': 8 id: 2 legend: alignAsTable: true @@ -17149,7 +17149,7 @@ conf: h: 7 w: 12 x: 12 - y: 8 + 'y': 8 id: 4 legend: alignAsTable: true @@ -17217,7 +17217,7 @@ conf: h: 7 w: 12 x: 0 - y: 15 + 'y': 15 id: 5 legend: alignAsTable: true @@ -17285,7 +17285,7 @@ conf: h: 7 w: 12 x: 12 - y: 15 + 'y': 15 id: 6 legend: alignAsTable: true @@ -17353,7 +17353,7 @@ conf: h: 7 w: 12 x: 0 - y: 22 + 'y': 22 id: 7 legend: alignAsTable: true @@ -17421,7 +17421,7 @@ conf: h: 7 w: 12 x: 12 - y: 22 + 'y': 22 id: 8 legend: alignAsTable: true @@ -17489,7 +17489,7 @@ conf: h: 7 w: 12 x: 0 - y: 29 + 'y': 29 id: 9 legend: alignAsTable: true @@ -17557,7 +17557,7 @@ conf: h: 7 w: 12 x: 12 - y: 29 + 'y': 29 id: 10 legend: alignAsTable: true @@ -17625,7 +17625,7 @@ conf: h: 7 w: 12 x: 0 - y: 36 + 'y': 36 id: 11 legend: alignAsTable: true @@ -17693,7 +17693,7 @@ conf: h: 7 w: 12 x: 12 - y: 36 + 'y': 36 id: 12 legend: alignAsTable: true @@ -17761,7 +17761,7 @@ conf: h: 7 w: 12 x: 0 - y: 43 + 'y': 43 id: 13 legend: alignAsTable: true @@ -17829,7 +17829,7 @@ conf: h: 7 w: 12 x: 12 - y: 43 + 'y': 43 id: 14 legend: alignAsTable: true