Skip to content
Snippets Groups Projects
Unverified Commit daf2e76b authored by Frederic Branczyk's avatar Frederic Branczyk Committed by GitHub
Browse files

Merge pull request #144 from zachaller/patch-1

Update kube-state-metrics.libsonnet
parents 5a34b9de 48651090
Branches
Tags
No related merge requests found
......@@ -67,6 +67,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'daemonsets',
'deployments',
'replicasets',
'ingresses',
]) +
rulesType.withVerbs(['list', 'watch']);
......@@ -115,8 +116,15 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'poddisruptionbudgets',
]) +
rulesType.withVerbs(['list', 'watch']);
local certificateRule = rulesType.new() +
rulesType.withApiGroups(['certificates.k8s.io']) +
rulesType.withResources([
'certificatesigningrequests',
]) +
rulesType.withVerbs(['list', 'watch']);
local rules = [coreRule, extensionsRule, appsRule, batchRule, autoscalingRule, authenticationRole, authorizationRole, policyRule];
local rules = [coreRule, extensionsRule, appsRule, batchRule, autoscalingRule, authenticationRole, authorizationRole, policyRule, certificateRule];
clusterRole.new() +
clusterRole.mixin.metadata.withName('kube-state-metrics') +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment