Skip to content
Snippets Groups Projects
Unverified Commit 5b2740d5 authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Merge pull request #1114 from dgrisonnet/export-anti-affinity

Export anti-affinity addon
parents dbf61818 fa05e2cd
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
}, },
}, },
local antiaffinity(labelSelector, namespace, type, topologyKey) = { antiaffinity(labelSelector, namespace, type, topologyKey): {
local podAffinityTerm = { local podAffinityTerm = {
namespaces: [namespace], namespaces: [namespace],
topologyKey: topologyKey, topologyKey: topologyKey,
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
alertmanager+: { alertmanager+: {
alertmanager+: { alertmanager+: {
spec+: spec+:
antiaffinity( $.antiaffinity(
$.alertmanager._config.selectorLabels, $.alertmanager._config.selectorLabels,
$.values.common.namespace, $.values.common.namespace,
$.values.alertmanager.podAntiAffinity, $.values.alertmanager.podAntiAffinity,
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
prometheus+: { prometheus+: {
prometheus+: { prometheus+: {
spec+: spec+:
antiaffinity( $.antiaffinity(
$.prometheus._config.selectorLabels, $.prometheus._config.selectorLabels,
$.values.common.namespace, $.values.common.namespace,
$.values.prometheus.podAntiAffinity, $.values.prometheus.podAntiAffinity,
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
spec+: { spec+: {
template+: { template+: {
spec+: spec+:
antiaffinity( $.antiaffinity(
$.blackboxExporter._config.selectorLabels, $.blackboxExporter._config.selectorLabels,
$.values.common.namespace, $.values.common.namespace,
$.values.blackboxExporter.podAntiAffinity, $.values.blackboxExporter.podAntiAffinity,
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
spec+: { spec+: {
template+: { template+: {
spec+: spec+:
antiaffinity( $.antiaffinity(
$.prometheusAdapter._config.selectorLabels, $.prometheusAdapter._config.selectorLabels,
$.values.common.namespace, $.values.common.namespace,
$.values.prometheusAdapter.podAntiAffinity, $.values.prometheusAdapter.podAntiAffinity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment