feat(grafana): add env parameter for gradana component

This commit is contained in:
anarcher 2021-05-31 18:52:55 +09:00
parent 1a39aaa2ab
commit 8bcfb98a1d

View File

@ -28,6 +28,7 @@ local defaults = {
datasources: [],
config: {},
plugins: [],
env: [],
};
function(params) {
@ -57,6 +58,7 @@ function(params) {
containers: g._config.containers,
config+: g._config.config,
plugins+: g._config.plugins,
env: g._config.env,
} + (
// Conditionally overwrite default setting.
if std.length(g._config.datasources) > 0 then