diff --git a/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet b/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet index 3916fbce..9005402e 100644 --- a/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet +++ b/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet @@ -29,12 +29,12 @@ }, }, - prometheus+: { + prometheus+:: { local p = self, prometheus+: { spec+: - antiaffinity('prometheus', [p.name], p.namespace), + antiaffinity('prometheus', [$._config.prometheus.name], $._config.namespace), }, }, }