Skip to content
Snippets Groups Projects
Commit 3bd7d36a authored by Joshua Olson's avatar Joshua Olson
Browse files

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.
parent 3edf5c54
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment