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 = local kp =
(import 'kube-prometheus/kube-prometheus.libsonnet') + (import 'kube-prometheus/main.libsonnet') +
{ {
_config+:: { _config+:: {
namespace: 'monitoring', namespace: 'monitoring',
@@ -48,7 +48,8 @@ local kp =
'kube-prometheus': ingress( 'kube-prometheus': ingress(
'kube-prometheus', 'kube-prometheus',
$._config.namespace, $._config.namespace,
[{ [
{
host: 'alertmanager.example.com', host: 'alertmanager.example.com',
http: { http: {
paths: [{ paths: [{
@@ -86,7 +87,8 @@ local kp =
}, },
}], }],
}, },
},] },
]
), ),
}, },