mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Add livestores to jsonnet lib * Update tk example to run complete rhythm setup * Small fixes * Simplify antiaffinity config * chlog * compile!
30 lines
661 B
Jsonnet
30 lines
661 B
Jsonnet
local clusters = import 'clusters.libsonnet';
|
|
local tanka = import 'github.com/grafana/jsonnet-libs/tanka-util/main.libsonnet';
|
|
|
|
{
|
|
environment(cluster)::
|
|
tanka.environment.new(
|
|
name='grafana/' + cluster.name,
|
|
namespace=cluster.namespace,
|
|
apiserver=cluster.apiServer,
|
|
)
|
|
+ tanka.environment.withLabels({ cluster: cluster.name })
|
|
+ tanka.environment.withData(cluster.data {
|
|
|
|
_config+:: {
|
|
namespace: cluster.namespace,
|
|
},
|
|
|
|
} + cluster.dataOverride)
|
|
+ {
|
|
spec+: {
|
|
injectLabels: true,
|
|
},
|
|
},
|
|
|
|
envs: {
|
|
[cluster.name]: $.environment(cluster)
|
|
for cluster in clusters
|
|
},
|
|
}
|