From 4dc68103b90885b91a231a4bba359197725df1fd Mon Sep 17 00:00:00 2001
From: Derek Wilson <nosliwkeredj@gmail.com>
Date: Tue, 27 Oct 2020 22:07:45 +0000
Subject: [PATCH] fix prometheus namespace

mistaken change of namespace for where prometheus is deployed
---
 .../prometheus-adapter/prometheus-adapter.libsonnet             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet
index 1e1c6b2a..f4459dbe 100644
--- a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet
+++ b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet
@@ -16,7 +16,7 @@ local k = import 'github.com/ksonnet/ksonnet-lib/ksonnet.beta.4/k.libsonnet';
       name: 'prometheus-adapter',
       namespace: $._config.namespace,
       labels: { name: $._config.prometheusAdapter.name },
-      prometheusURL: 'http://prometheus-' + $._config.prometheus.name + '.' + $._config.prometheusAdapter.namespace + '.svc.cluster.local:9090/',
+      prometheusURL: 'http://prometheus-' + $._config.prometheus.name + '.' + $._config.namespace + '.svc.cluster.local:9090/',
       config: {
         resourceRules: {
           cpu: {
-- 
GitLab