regenerating README.md
This commit is contained in:
29
README.md
29
README.md
@@ -157,7 +157,6 @@ local kp =
|
||||
},
|
||||
};
|
||||
|
||||
local manifests =
|
||||
{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } +
|
||||
{ ['0prometheus-operator-' + name]: kp.prometheusOperator[name] for name in std.objectFields(kp.prometheusOperator) } +
|
||||
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
|
||||
@@ -165,33 +164,7 @@ local manifests =
|
||||
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
|
||||
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
|
||||
{ ['prometheus-adapter-' + name]: kp.prometheusAdapter[name] for name in std.objectFields(kp.prometheusAdapter) } +
|
||||
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) };
|
||||
|
||||
// local kustomization = {
|
||||
// apiVersion: 'kustomize.config.k8s.io/v1beta1',
|
||||
// kind: 'Kustomization',
|
||||
// resources:
|
||||
// ['00namespace-' + name + '.yaml' for name in std.objectFields(kp.kubePrometheus)] +
|
||||
// ['0prometheus-operator-' + name + '.yaml' for name in std.objectFields(kp.prometheusOperator)] +
|
||||
// ['node-exporter-' + name + '.yaml' for name in std.objectFields(kp.nodeExporter)] +
|
||||
// ['kube-state-metrics-' + name + '.yaml' for name in std.objectFields(kp.kubeStateMetrics)] +
|
||||
// ['alertmanager-' + name + '.yaml' for name in std.objectFields(kp.alertmanager)] +
|
||||
// ['prometheus-' + name + '.yaml' for name in std.objectFields(kp.prometheus)] +
|
||||
// ['prometheus-adapter-' + name + '.yaml' for name in std.objectFields(kp.prometheusAdapter)] +
|
||||
// ['grafana-' + name + '.yaml' for name in std.objectFields(kp.grafana)],
|
||||
// };
|
||||
|
||||
local foo = function(name) { name ::+ '.yaml' };
|
||||
|
||||
local kustomization = {
|
||||
apiVersion: 'kustomize.config.k8s.io/v1beta1',
|
||||
kind: 'Kustomization',
|
||||
resources: std.map(foo , std.objectFields(manifests))
|
||||
};
|
||||
|
||||
manifests {
|
||||
kustomization: kustomization
|
||||
}
|
||||
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }
|
||||
```
|
||||
|
||||
And here's the [build.sh](build.sh) script (which uses `vendor/` to render all manifests in a json structure of `{filename: manifest-content}`):
|
||||
|
Reference in New Issue
Block a user