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:
@@ -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];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user