From 3bd7d36abd2a2902522e815a2606ccc885c0ab5b Mon Sep 17 00:00:00 2001
From: Joshua Olson <Joshua.Olson@Pearson.com>
Date: Mon, 21 May 2018 16:18:57 -0500
Subject: [PATCH] add the watch verb (to the namespace apiGroup for the
 prometheus-operator ClusterRole).

To get the "Failed to watch" error to stop happening in the prometheus-operator logs.

Fixes #1324 for kube-prometheus.
---
 .../prometheus-operator/prometheus-operator.libsonnet           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jsonnet/kube-prometheus/prometheus-operator/prometheus-operator.libsonnet b/jsonnet/kube-prometheus/prometheus-operator/prometheus-operator.libsonnet
index c1003ebf..32864026 100644
--- a/jsonnet/kube-prometheus/prometheus-operator/prometheus-operator.libsonnet
+++ b/jsonnet/kube-prometheus/prometheus-operator/prometheus-operator.libsonnet
@@ -100,7 +100,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
                             policyRule.withResources([
                               'namespaces',
                             ]) +
-                            policyRule.withVerbs(['list']);
+                            policyRule.withVerbs(['list', 'watch']);
 
       local rules = [extensionsRule, apiExtensionsRule, monitoringRule, appsRule, coreRule, podRule, routingRule, nodeRule, namespaceRule];
 
-- 
GitLab