From ce207574759e62824b2b259db3182a60d2bdd4c8 Mon Sep 17 00:00:00 2001
From: Nuala Gaffey <ngaffey@etsy.com>
Date: Mon, 27 Nov 2017 17:04:43 -0500
Subject: [PATCH] Per issue 593, append .yml to each filename used in the
 generated configmap. I wasn't able to see alerts in the Prometheus UI until I
 did this

---
 hack/scripts/generate-rules-configmap.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hack/scripts/generate-rules-configmap.sh b/hack/scripts/generate-rules-configmap.sh
index 7a98962d..97f99767 100755
--- a/hack/scripts/generate-rules-configmap.sh
+++ b/hack/scripts/generate-rules-configmap.sh
@@ -13,6 +13,6 @@ EOF
 
 for f in assets/prometheus/rules/*.rules.y*ml
 do
-  echo "  $(basename $f): |+"
+  echo "  $(basename $f | sed s/\.yml//): |+"
   cat $f | sed "s/^/    /g"
 done
-- 
GitLab