diff --git a/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet b/jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet index 3916fbced9d2f9874f85d192ab4aa0139a2abf42..9005402e946fe47ac2973561ebf2f13ab7ce00fa 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), }, }, }