import main.libsonnet to allow exmaple generation

This commit is contained in:
Blizter
2021-10-24 09:34:01 -04:00
parent 1ffd6dfb30
commit d4b8fff276

View File

@@ -14,7 +14,7 @@ local ingress(name, namespace, rules) = {
};
local kp =
(import 'kube-prometheus/kube-prometheus.libsonnet') +
(import 'kube-prometheus/main.libsonnet') +
{
_config+:: {
namespace: 'monitoring',
@@ -48,7 +48,8 @@ local kp =
'kube-prometheus': ingress(
'kube-prometheus',
$._config.namespace,
[{
[
{
host: 'alertmanager.example.com',
http: {
paths: [{
@@ -86,7 +87,8 @@ local kp =
},
}],
},
},]
},
]
),
},