Merge pull request #368 from jfassad/master
jsonnet/kube-prometheus/kube-state-metrics: Add missing clusterRole permissions
This commit is contained in:
@@ -122,6 +122,22 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|||||||
rulesType.withApiGroups(['storage.k8s.io']) +
|
rulesType.withApiGroups(['storage.k8s.io']) +
|
||||||
rulesType.withResources([
|
rulesType.withResources([
|
||||||
'storageclasses',
|
'storageclasses',
|
||||||
|
'volumeattachments',
|
||||||
|
]) +
|
||||||
|
rulesType.withVerbs(['list', 'watch']),
|
||||||
|
|
||||||
|
rulesType.new() +
|
||||||
|
rulesType.withApiGroups(['admissionregistration.k8s.io']) +
|
||||||
|
rulesType.withResources([
|
||||||
|
'validatingwebhookconfigurations',
|
||||||
|
'mutatingwebhookconfigurations',
|
||||||
|
]) +
|
||||||
|
rulesType.withVerbs(['list', 'watch']),
|
||||||
|
|
||||||
|
rulesType.new() +
|
||||||
|
rulesType.withApiGroups(['networking.k8s.io']) +
|
||||||
|
rulesType.withResources([
|
||||||
|
'networkpolicies',
|
||||||
]) +
|
]) +
|
||||||
rulesType.withVerbs(['list', 'watch']),
|
rulesType.withVerbs(['list', 'watch']),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -86,6 +86,22 @@ rules:
|
|||||||
- storage.k8s.io
|
- storage.k8s.io
|
||||||
resources:
|
resources:
|
||||||
- storageclasses
|
- storageclasses
|
||||||
|
- volumeattachments
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- admissionregistration.k8s.io
|
||||||
|
resources:
|
||||||
|
- validatingwebhookconfigurations
|
||||||
|
- mutatingwebhookconfigurations
|
||||||
|
verbs:
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- networking.k8s.io
|
||||||
|
resources:
|
||||||
|
- networkpolicies
|
||||||
verbs:
|
verbs:
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
|||||||
Reference in New Issue
Block a user