running gen in docker
This commit is contained in:
@@ -165,6 +165,7 @@ local kp =
|
|||||||
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
|
{ ['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) } +
|
{ ['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) }
|
{ ['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}`):
|
And here's the [build.sh](build.sh) script (which uses `vendor/` to render all manifests in a json structure of `{filename: manifest-content}`):
|
||||||
|
@@ -25,6 +25,7 @@ local kp =
|
|||||||
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
|
{ ['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) } +
|
{ ['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) }
|
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Prometheus rules
|
## Prometheus rules
|
||||||
|
@@ -15,14 +15,14 @@ local manifests =
|
|||||||
{ ['prometheus-adapter-' + name]: kp.prometheusAdapter[name] for name in std.objectFields(kp.prometheusAdapter) } +
|
{ ['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) };
|
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) };
|
||||||
|
|
||||||
local kustomizationResourceFile(name) = "./manifests/" + name + ".yaml";
|
local kustomizationResourceFile(name) = './manifests/' + name + '.yaml';
|
||||||
local kustomization = {
|
local kustomization = {
|
||||||
apiVersion: 'kustomize.config.k8s.io/v1beta1',
|
apiVersion: 'kustomize.config.k8s.io/v1beta1',
|
||||||
kind: 'Kustomization',
|
kind: 'Kustomization',
|
||||||
resources: std.map(kustomizationResourceFile, std.objectFields(manifests))
|
resources: std.map(kustomizationResourceFile, std.objectFields(manifests)),
|
||||||
};
|
};
|
||||||
|
|
||||||
manifests {
|
manifests {
|
||||||
"../kustomization": kustomization,
|
'../kustomization': kustomization,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user