mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-26 00:42:09 +02:00
Merge pull request #1171 from anarcher/pr/grafana-env-1167
feat(grafana): add env parameter for grafana component
This commit is contained in:
commit
93cc34f0f6
@ -28,6 +28,7 @@ local defaults = {
|
|||||||
datasources: [],
|
datasources: [],
|
||||||
config: {},
|
config: {},
|
||||||
plugins: [],
|
plugins: [],
|
||||||
|
env: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
function(params) {
|
function(params) {
|
||||||
@ -57,6 +58,7 @@ function(params) {
|
|||||||
containers: g._config.containers,
|
containers: g._config.containers,
|
||||||
config+: g._config.config,
|
config+: g._config.config,
|
||||||
plugins+: g._config.plugins,
|
plugins+: g._config.plugins,
|
||||||
|
env: g._config.env,
|
||||||
} + (
|
} + (
|
||||||
// Conditionally overwrite default setting.
|
// Conditionally overwrite default setting.
|
||||||
if std.length(g._config.datasources) > 0 then
|
if std.length(g._config.datasources) > 0 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user