From c424ae17938fa8509d7732f4cab80bd6fcdf9365 Mon Sep 17 00:00:00 2001 From: Roelof Naude Date: Tue, 14 Jul 2020 16:26:12 +0200 Subject: [PATCH] - allow adding environment variables to the grafana deployment. the main use case for this is to allow plugin download when behind a proxy --- base_operator_stack.jsonnet | 1 + vars.jsonnet | 2 ++ 2 files changed, 3 insertions(+) diff --git a/base_operator_stack.jsonnet b/base_operator_stack.jsonnet index da93e6d..e8fca74 100644 --- a/base_operator_stack.jsonnet +++ b/base_operator_stack.jsonnet @@ -59,6 +59,7 @@ local vars = import 'vars.jsonnet'; }, }, plugins: vars.grafana.plugins, + env: vars.grafana.env }, }, //--------------------------------------- diff --git a/vars.jsonnet b/vars.jsonnet index 645e078..c21aad4 100644 --- a/vars.jsonnet +++ b/vars.jsonnet @@ -79,5 +79,7 @@ // Plugins to be installed at runtime. //Ex. plugins: ['grafana-piechart-panel', 'grafana-clock-panel'], plugins: [], + //Ex. env: [ { name: 'http_proxy', value: 'host:8080' } ] + env: [] }, }