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.
This commit is contained in:
Joshua Olson
2018-05-21 16:18:57 -05:00
parent 3edf5c5410
commit 3bd7d36abd

View File

@@ -100,7 +100,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
policyRule.withResources([ policyRule.withResources([
'namespaces', 'namespaces',
]) + ]) +
policyRule.withVerbs(['list']); policyRule.withVerbs(['list', 'watch']);
local rules = [extensionsRule, apiExtensionsRule, monitoringRule, appsRule, coreRule, podRule, routingRule, nodeRule, namespaceRule]; local rules = [extensionsRule, apiExtensionsRule, monitoringRule, appsRule, coreRule, podRule, routingRule, nodeRule, namespaceRule];