Skip to content
Snippets Groups Projects
Commit fa05e2cd authored by Damien Grisonnet's avatar Damien Grisonnet
Browse files

jsonnet: export anti-affinity addon


Export the antiaffinity function of the anti-affinity addon to make it
possible to extend the addon to component that are not present in the
kube-prometheus stack.

Signed-off-by: default avatarDamien Grisonnet <dgrisonn@redhat.com>
parent 9d69c4c3
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
},
},
local antiaffinity(labelSelector, namespace, type, topologyKey) = {
antiaffinity(labelSelector, namespace, type, topologyKey): {
local podAffinityTerm = {
namespaces: [namespace],
topologyKey: topologyKey,
......@@ -44,7 +44,7 @@
alertmanager+: {
alertmanager+: {
spec+:
antiaffinity(
$.antiaffinity(
$.alertmanager._config.selectorLabels,
$.values.common.namespace,
$.values.alertmanager.podAntiAffinity,
......@@ -56,7 +56,7 @@
prometheus+: {
prometheus+: {
spec+:
antiaffinity(
$.antiaffinity(
$.prometheus._config.selectorLabels,
$.values.common.namespace,
$.values.prometheus.podAntiAffinity,
......@@ -70,7 +70,7 @@
spec+: {
template+: {
spec+:
antiaffinity(
$.antiaffinity(
$.blackboxExporter._config.selectorLabels,
$.values.common.namespace,
$.values.blackboxExporter.podAntiAffinity,
......@@ -86,7 +86,7 @@
spec+: {
template+: {
spec+:
antiaffinity(
$.antiaffinity(
$.prometheusAdapter._config.selectorLabels,
$.values.common.namespace,
$.values.prometheusAdapter.podAntiAffinity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment