File tree 2 files changed +38
-0
lines changed
jsonnet/kube-prometheus/components
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ local kp =
2
+ (import 'kube-prometheus/main.libsonnet' ) +
3
+ {
4
+ values+:: {
5
+ common+: {
6
+ namespace: 'monitoring' ,
7
+ },
8
+ grafana+: {
9
+ config+: {
10
+ sections: {
11
+ 'auth.ldap' : {
12
+ enabled: true ,
13
+ config_file: '/etc/grafana/ldap.toml' ,
14
+ allow_sign_up: true ,
15
+ },
16
+ },
17
+ },
18
+ ldap: |||
19
+ [[servers]]
20
+ host = "127.0.0.1"
21
+ port = 389
22
+ use_ssl = false
23
+ start_tls = false
24
+ ssl_skip_verify = false
25
+
26
+ bind_dn = "cn=admins,dc=example,dc=com"
27
+ bind_password = 'grafana'
28
+
29
+ search_filter = "(cn=%s)"
30
+ search_base_dns = ["dc=example,dc=com"]
31
+ ||| ,
32
+ },
33
+ },
34
+ };
35
+
36
+ { ['grafana-' + name]: kp.grafana[name] for name in std.objectFields (kp.grafana) }
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ local defaults = {
27
27
containers: [],
28
28
datasources: [],
29
29
config: {},
30
+ ldap: null ,
30
31
plugins: [],
31
32
env: [],
32
33
};
@@ -57,6 +58,7 @@ function(params) {
57
58
folderDashboards: g._config.folderDashboards,
58
59
containers: g._config.containers,
59
60
config+: g._config.config,
61
+ ldap: g._config.ldap,
60
62
plugins+: g._config.plugins,
61
63
env: g._config.env,
62
64
} + (
You can’t perform that action at this time.
0 commit comments